summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterStmt.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-09-13 20:54:30 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-09-13 20:54:30 +0000
commit1394a4b7157d88d42e40edd9ebea42646bec0b4e (patch)
tree6c726e86e9b4991ed5c4b98221ae41ff0d699e9c /clang/lib/Serialization/ASTWriterStmt.cpp
parent068b5b3d61f4d71c172227e4fd42d3af342c17f3 (diff)
downloadbcm5719-llvm-1394a4b7157d88d42e40edd9ebea42646bec0b4e.tar.gz
bcm5719-llvm-1394a4b7157d88d42e40edd9ebea42646bec0b4e.zip
Extend the build mechanism to allow for specifying the compiler used to build
the binaries. If the build* function is passed the compiler argument, for example, 'llvm-gcc', it is passed as a make variable to the make command. Otherwise, we check the LLDB_CC environment variable; if it is defined, it is passed as a make variable to the make command. If neither the compiler keyword argument nor the LLDB_CC environment variable is specified, no CC make variable is passed to the make command. The Makefile gets to define the default CC being used. -------------------------------------------------------------------------------- Example usage follows: o Via the keyword argument: class ArrayTypesTestCase(TestBase): mydir = "array_types" @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") def test_with_dsym_and_run_command(self): """Test 'frame variable var_name' on some variables with array types.""" self.buildDsym(compiler='llvm-gcc') self.array_types() ... o Via LLDB_CC environment variable: $ LLDB_CC=llvm-gcc ./dotest.py -v -t array_types ---------------------------------------------------------------------- Collected 4 tests test_with_dsym_and_python_api (TestArrayTypes.ArrayTypesTestCase) Use Python APIs to inspect variables with array types. ... os command: [['/bin/sh', '-c', 'make clean; make MAKE_DSYM=YES CC=llvm-gcc']] output: rm -rf "a.out" "a.out.dSYM" main.o main.d llvm-gcc -arch x86_64 -gdwarf-2 -O0 -arch x86_64 -gdwarf-2 -O0 -c -o main.o main.c llvm-gcc -arch x86_64 -gdwarf-2 -O0 main.o -o "a.out" /usr/bin/dsymutil -o "a.out.dSYM" "a.out" ... llvm-svn: 113781
Diffstat (limited to 'clang/lib/Serialization/ASTWriterStmt.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud