aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-06-02 21:38:10 +0000
committerGreg Clayton <gclayton@apple.com>2015-06-02 21:38:10 +0000
commit315b88d0cfe21a71df07123f49ec881cb731673a (patch)
treee2755411ed1e5e298f4299eda21389c5b8d1d2f2 /clang/lib/Frontend/CompilerInvocation.cpp
parent0ccf9b71f3559f55ef228520686ad3619f83c606 (diff)
downloadllvm-315b88d0cfe21a71df07123f49ec881cb731673a.zip
llvm-315b88d0cfe21a71df07123f49ec881cb731673a.tar.gz
llvm-315b88d0cfe21a71df07123f49ec881cb731673a.tar.bz2
Added the ability for the "make" command to take a triple:
% cd lldb/test/lang/c/array_types % make TRIPLE=x86_64-apple-ios % make clean % make TRIPLE=x86_64-apple-ios8.1 % make clean % make TRIPLE=armv7-apple-ios % make clean % make TRIPLE=armv7-apple-ios8.1 % make clean The TRIPLE variable will automatically set the following variables: SDKROOT if it isn't specified manually ARCH will be set to the architecture from the triple CFLAGS will include the extras needed for the triple which are set in TRIPLE_CFLAGS TRIPLE_VENDOR set to the triple vendor ("apple" in the above cases) TRIPLE_OS set to the triple OS ("ios" in the above cases) TRIPLE_VERSION set to the version that was specified, or automatically set to the SDK version if it is missing This allows you to change directory into any test case on MacOSX and quickly build for desktop: % make iOS simulator: % make TRIPLE=x86_64-apple-ios or iOS device: % make TRIPLE=armv7-apple-ios llvm-svn: 238869
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions