aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Host.cpp
diff options
context:
space:
mode:
authorTim Northover <Tim.Northover@arm.com>2013-05-04 07:36:23 +0000
committerTim Northover <Tim.Northover@arm.com>2013-05-04 07:36:23 +0000
commitfee13d1e1102a791ba8e9fa3582b6ce6f52452ac (patch)
tree1807d4a2b452f179a261ea29f3b8ad0a50791981 /llvm/lib/Support/Host.cpp
parent8ec8c4bf89c5e1bed3bcb3425e6e3fa347fea319 (diff)
downloadllvm-fee13d1e1102a791ba8e9fa3582b6ce6f52452ac.zip
llvm-fee13d1e1102a791ba8e9fa3582b6ce6f52452ac.tar.gz
llvm-fee13d1e1102a791ba8e9fa3582b6ce6f52452ac.tar.bz2
Allow host triple to be correctly overridden in CMake builds
The intended semantics mirror autoconf, where the user is able to specify a host triple, but if it's left to the build system then "config.guess" is invoked for the default. This also renames the LLVM_HOSTTRIPLE define to LLVM_HOST_TRIPLE to fit in with the style of the surrounding defines. llvm-svn: 181112
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r--llvm/lib/Support/Host.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 8657abc..a7c7a95 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -613,7 +613,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features){
#endif
std::string sys::getProcessTriple() {
- Triple PT(LLVM_HOSTTRIPLE);
+ Triple PT(LLVM_HOST_TRIPLE);
if (sizeof(void *) == 8 && PT.isArch32Bit())
PT = PT.get64BitArchVariant();