summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2019-10-10 21:21:16 +0000
committerFrederic Riss <friss@apple.com>2019-10-10 21:21:16 +0000
commit58417b3390e973b8bd9735bbfb781125a58ee2c2 (patch)
treead22d07dd7c17f1288442260232bef08c470cb15 /lldb/packages/Python/lldbsuite
parent31e454c1ecac59273b4864990c8368c3e3fd16b6 (diff)
downloadbcm5719-llvm-58417b3390e973b8bd9735bbfb781125a58ee2c2.tar.gz
bcm5719-llvm-58417b3390e973b8bd9735bbfb781125a58ee2c2.zip
TestMTCSimple: Make Makefile portable.
r374262 left out the Makefile changes needed to cross compile this test. llvm-svn: 374451
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile b/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile
index 44093101a50..1b231a5958d 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile
@@ -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
OpenPOWER on IntegriCloud