summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-05-16 00:33:34 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-05-16 00:33:34 +0000
commite7ae16fa836cafe484f613334451655c28006e35 (patch)
tree78917196a1a209bdeb6512665c6fd586d92bbec6
parent4e711921ba80ee606b49a51da012523daf274c2c (diff)
downloadbcm5719-llvm-e7ae16fa836cafe484f613334451655c28006e35.tar.gz
bcm5719-llvm-e7ae16fa836cafe484f613334451655c28006e35.zip
Fix Makefile to pass the correct -arch flag to the toolchains.
llvm-svn: 156882
-rw-r--r--lldb/test/functionalities/load_unload/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/test/functionalities/load_unload/Makefile b/lldb/test/functionalities/load_unload/Makefile
index edef3868f72..e9343918f88 100644
--- a/lldb/test/functionalities/load_unload/Makefile
+++ b/lldb/test/functionalities/load_unload/Makefile
@@ -1,7 +1,10 @@
all: a.out liba.dylib libb.dylib libc.dylib libd.dylib
CC ?= clang
-CFLAGS ?=-arch x86_64 -gdwarf-2 -O0
+ifeq "$(ARCH)" ""
+ ARCH = x86_64
+endif
+CFLAGS ?=-arch $(ARCH) -gdwarf-2 -O0
CWD := $(shell pwd)
all: a.out hidden/libd.dylib
OpenPOWER on IntegriCloud