[Lldb-commits] [lldb] r123461 - /lldb/trunk/test/make/Makefile.rules

Johnny Chen johnny.chen at apple.com
Fri Jan 14 12:46:49 PST 2011


Author: johnny
Date: Fri Jan 14 14:46:49 2011
New Revision: 123461

URL: http://llvm.org/viewvc/llvm-project?rev=123461&view=rev
Log:
Make CC defaults to gcc.  The cxx_compiler and cxx_linker functions rely on substituting "g++"
for "gcc".

Modified:
    lldb/trunk/test/make/Makefile.rules

Modified: lldb/trunk/test/make/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/make/Makefile.rules?rev=123461&r1=123460&r2=123461&view=diff
==============================================================================
--- lldb/trunk/test/make/Makefile.rules (original)
+++ lldb/trunk/test/make/Makefile.rules Fri Jan 14 14:46:49 2011
@@ -18,11 +18,18 @@
 endif
 
 #----------------------------------------------------------------------
+# CC defaults to gcc.
+#----------------------------------------------------------------------
+CC ?= gcc
+ifeq "$(CC)" "cc"
+	CC = gcc
+endif
+
+#----------------------------------------------------------------------
 # Change any build/tool options needed
 #----------------------------------------------------------------------
 DS := /usr/bin/dsymutil
 DSFLAGS =
-CC ?= gcc
 CFLAGS ?=-arch $(ARCH) -gdwarf-2 -O0
 CXXFLAGS +=$(CFLAGS)
 LD = $(CC)





More information about the lldb-commits mailing list