[Lldb-commits] [lldb] r127011 - /lldb/trunk/test/objc-optimized/Makefile

Johnny Chen johnny.chen at apple.com
Fri Mar 4 10:31:00 PST 2011


Author: johnny
Date: Fri Mar  4 12:31:00 2011
New Revision: 127011

URL: http://llvm.org/viewvc/llvm-project?rev=127011&view=rev
Log:
Change the CFLAGS variable assignment operator to ?= (conditional variable assignment operator).
This allows us to override CFLAGS on the command line:

$ CFLAGS='-arch $(ARCH) -gdwarf-2 -O0' ./dotest.py -C clang -A i386 -v objc-optimized

Session logs for test failures/errors will go into directory '2011-03-04-10_33_57'
Command invoked: python ./dotest.py -C clang -A i386 -v objc-optimized
----------------------------------------------------------------------
Collected 2 tests

1: test_break_with_dsym (TestObjcOptimized.ObjcOptimizedTestCase)
   Test 'expr member' continues to work for optimized build. ... ok
2: test_break_with_dwarf (TestObjcOptimized.ObjcOptimizedTestCase)
   Test 'expr member' continues to work for optimized build. ... ok

----------------------------------------------------------------------
Ran 2 tests in 1.902s

OK
$

Modified:
    lldb/trunk/test/objc-optimized/Makefile

Modified: lldb/trunk/test/objc-optimized/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/objc-optimized/Makefile?rev=127011&r1=127010&r2=127011&view=diff
==============================================================================
--- lldb/trunk/test/objc-optimized/Makefile (original)
+++ lldb/trunk/test/objc-optimized/Makefile Fri Mar  4 12:31:00 2011
@@ -2,7 +2,7 @@
 
 OBJC_SOURCES := main.m
 
-CFLAGS = -arch $(ARCH) -gdwarf-2 -O2
+CFLAGS ?= -arch $(ARCH) -gdwarf-2 -O2
 LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
 
 include $(LEVEL)/Makefile.rules





More information about the lldb-commits mailing list