Skip to content

Commit 58417b3

Browse files
committed
TestMTCSimple: Make Makefile portable.
r374262 left out the Makefile changes needed to cross compile this test. llvm-svn: 374451
1 parent 31e454c commit 58417b3

File tree

1 file changed

+6
-1
lines changed
  • lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple

1 file changed

+6
-1
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
OBJC_SOURCES := main.m
2-
LD_EXTRAS := -lobjc -framework Foundation -framework AppKit
2+
ifeq ($(findstring MacOSX.platform,$(shell xcrun --show-sdk-path)),MacOSX.platform)
3+
UI_FRAMEWORK = AppKit
4+
else
5+
UI_FRAMEWORK = UIKit
6+
endif
7+
LD_EXTRAS = -lobjc -framework Foundation -framework $(UI_FRAMEWORK)
38

49
include Makefile.rules

0 commit comments

Comments
 (0)