From 58417b3390e973b8bd9735bbfb781125a58ee2c2 Mon Sep 17 00:00:00 2001 From: Frederic Riss Date: Thu, 10 Oct 2019 21:21:16 +0000 Subject: TestMTCSimple: Make Makefile portable. r374262 left out the Makefile changes needed to cross compile this test. llvm-svn: 374451 --- .../Python/lldbsuite/test/functionalities/mtc/simple/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lldb/packages/Python') 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 -- cgit v1.2.3