[Lldb-commits] [lldb] r374451 - TestMTCSimple: Make Makefile portable.
Frederic Riss via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 10 14:21:16 PDT 2019
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
More information about the lldb-commits
mailing list