summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-04-16 01:18:05 +0000
committerGreg Clayton <gclayton@apple.com>2015-04-16 01:18:05 +0000
commit2c93b80f789b546d66c65c5318b5bb2b8a3b99be (patch)
tree5e18fa270e79d7a8fa0f0b0d8d485d7c0f40621f
parentb105564015292c933c6e0dab6bb027ed9c1580a5 (diff)
downloadbcm5719-llvm-2c93b80f789b546d66c65c5318b5bb2b8a3b99be.tar.gz
bcm5719-llvm-2c93b80f789b546d66c65c5318b5bb2b8a3b99be.zip
Make -arch work on MacOSX.
llvm-svn: 235065
-rw-r--r--lldb/test/make/Makefile.rules14
1 files changed, 11 insertions, 3 deletions
diff --git a/lldb/test/make/Makefile.rules b/lldb/test/make/Makefile.rules
index efad0ec8034..a17fcb2a4c6 100644
--- a/lldb/test/make/Makefile.rules
+++ b/lldb/test/make/Makefile.rules
@@ -75,7 +75,7 @@ endif
# ARCHFLAG is the flag used to tell the compiler which architecture
# to compile for. The default is the flag that clang accepts.
#----------------------------------------------------------------------
-ARCHFLAG ?= "-arch "
+ARCHFLAG ?= -arch
#----------------------------------------------------------------------
# Change any build/tool options needed
@@ -127,11 +127,19 @@ else
endif
CFLAGS ?= -g -O0
-CFLAGS += $(ARCHFLAG)$(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS) -I$(LLDB_BASE_DIR)include
+ifeq "$(OS)" "Darwin"
+ CFLAGS += $(ARCHFLAG) $(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS) -I$(LLDB_BASE_DIR)include
+else
+ CFLAGS += $(ARCHFLAG)$(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS) -I$(LLDB_BASE_DIR)include
+endif
CFLAGS += -include $(THIS_FILE_DIR)test_common.h
# Use this one if you want to build one part of the result without debug information:
-CFLAGS_NO_DEBUG = -O0 $(ARCHFLAG)$(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS)
+ifeq "$(OS)" "Darwin"
+ CFLAGS_NO_DEBUG = -O0 $(ARCHFLAG) $(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS)
+else
+ CFLAGS_NO_DEBUG = -O0 $(ARCHFLAG)$(ARCH) $(FRAMEWORK_INCLUDES) $(CFLAGS_EXTRAS)
+endif
CXXFLAGS += -std=c++11
CXXFLAGS += $(CFLAGS)
OpenPOWER on IntegriCloud