From e7ae16fa836cafe484f613334451655c28006e35 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Wed, 16 May 2012 00:33:34 +0000 Subject: [PATCH] Fix Makefile to pass the correct -arch flag to the toolchains. llvm-svn: 156882 --- lldb/test/functionalities/load_unload/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lldb/test/functionalities/load_unload/Makefile b/lldb/test/functionalities/load_unload/Makefile index edef3868f728..e9343918f884 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