summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorSebastian Pop <spop@codeaurora.org>2012-08-20 19:56:52 +0000
committerSebastian Pop <spop@codeaurora.org>2012-08-20 19:56:52 +0000
commitfaeca292a25005f2217f25f9c2f9c3fc0eca4ff7 (patch)
treec55f5562ffe2c79f9db4276ab9b96d39ed3dd655 /clang/lib/Sema/SemaCodeComplete.cpp
parent8f4aec434e83fd4fbb5781174a86a4214569b5c7 (diff)
downloadbcm5719-llvm-faeca292a25005f2217f25f9c2f9c3fc0eca4ff7.tar.gz
bcm5719-llvm-faeca292a25005f2217f25f9c2f9c3fc0eca4ff7.zip
enable cross compilation with cmake
This patch allows us to use cmake to specify a cross compiler: target different than host. In particular, it moves LLVM_DEFAULT_TARGET_TRIPLE and TARGET_TRIPLE variables from cmake/config-ix.cmake to the toplevel CMakeLists.txt to make them available at configure time. Here is the command line that I have used to test my patches to create a Hexagon cross compiler hosted on x86: $ cmake -G Ninja -D LLVM_TARGETS_TO_BUILD:STRING=Hexagon -D TARGET_TRIPLE:STRING=hexagon-unknown-linux-gnu -D LLVM_DEFAULT_TARGET_TRIPLE:STRING=hexagon-unknown-linux-gnu -D LLVM_TARGET_ARCH:STRING=hexagon-unknown-linux-gnu .. $ ninja check llvm-svn: 162219
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud