[Lldb-commits] [lldb] r124764 - /lldb/trunk/test/macosx/universal/Makefile

Johnny Chen johnny.chen at apple.com
Wed Feb 2 16:44:32 PST 2011


Author: johnny
Date: Wed Feb  2 18:44:32 2011
New Revision: 124764

URL: http://llvm.org/viewvc/llvm-project?rev=124764&view=rev
Log:
Parametrize make variable CC to also test with clang.

Modified:
    lldb/trunk/test/macosx/universal/Makefile

Modified: lldb/trunk/test/macosx/universal/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/universal/Makefile?rev=124764&r1=124763&r2=124764&view=diff
==============================================================================
--- lldb/trunk/test/macosx/universal/Makefile (original)
+++ lldb/trunk/test/macosx/universal/Makefile Wed Feb  2 18:44:32 2011
@@ -1,17 +1,22 @@
+CC ?= gcc
+ifeq "$(CC)" "cc"
+	CC = gcc
+endif
+
 testit: testit.i386 testit.x86_64
 	lipo -create -o testit testit.i386 testit.x86_64
 
 testit.i386: testit.i386.o
-	gcc -arch i386 -o testit.i386 testit.i386.o
+	$(CC) -arch i386 -o testit.i386 testit.i386.o
 
 testit.x86_64: testit.x86_64.o
-	gcc -arch x86_64 -o testit.x86_64 testit.x86_64.o
+	$(CC) -arch x86_64 -o testit.x86_64 testit.x86_64.o
 
 testit.i386.o: main.c
-	gcc -g -O0 -arch i386 -c -o testit.i386.o main.c
+	$(CC) -g -O0 -arch i386 -c -o testit.i386.o main.c
 
 testit.x86_64.o: main.c
-	gcc -g -O0 -arch x86_64 -c -o testit.x86_64.o main.c
+	$(CC) -g -O0 -arch x86_64 -c -o testit.x86_64.o main.c
 
 clean:
 	rm -rf testit* *~





More information about the lldb-commits mailing list