Author: friss
Date: Thu Oct 10 14:21:16 2019
New Revision: 374451

URL: http://llvm.org/viewvc/llvm-project?rev=374451&view=rev
Log:
TestMTCSimple: Make Makefile portable.

r374262 left out the Makefile changes needed to cross compile this test.

Modified:
    
lldb/trunk/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile

Modified: 
lldb/trunk/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile?rev=374451&r1=374450&r2=374451&view=diff
==============================================================================
--- 
lldb/trunk/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile 
(original)
+++ 
lldb/trunk/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile 
Thu Oct 10 14:21:16 2019
@@ -1,4 +1,9 @@
 OBJC_SOURCES := main.m
-LD_EXTRAS := -lobjc -framework Foundation -framework AppKit
+ifeq ($(findstring MacOSX.platform,$(shell xcrun 
--show-sdk-path)),MacOSX.platform)
+UI_FRAMEWORK = AppKit
+else
+UI_FRAMEWORK = UIKit
+endif
+LD_EXTRAS = -lobjc -framework Foundation -framework $(UI_FRAMEWORK)
 
 include Makefile.rules


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to