summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile b/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile
index 1b231a5958d..f27f57aeebf 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile
@@ -1,9 +1,14 @@
OBJC_SOURCES := main.m
-ifeq ($(findstring MacOSX.platform,$(shell xcrun --show-sdk-path)),MacOSX.platform)
UI_FRAMEWORK = AppKit
-else
-UI_FRAMEWORK = UIKit
+
+ifneq ("$(SDKROOT)", "")
+ ifeq (,$(findstring macOS,$(SDKROOT)))
+ ifeq (,$(findstring MacOS,$(SDKROOT)))
+ UI_FRAMEWORK = UIKit
+ endif
+ endif
endif
+
LD_EXTRAS = -lobjc -framework Foundation -framework $(UI_FRAMEWORK)
include Makefile.rules
OpenPOWER on IntegriCloud