diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-02-10 01:12:55 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-02-10 01:12:55 +0000 |
commit | 0882a5d5ec85ee26a6e94264864cea2f6ae6c90b (patch) | |
tree | 889f0e2df4fdb89bde5f1771104a96743107fda7 /llvm/tools/llvm-config/llvm-config.cpp | |
parent | 6fa4e290d735b00b776108d084da9f6d26c3e052 (diff) | |
download | bcm5719-llvm-0882a5d5ec85ee26a6e94264864cea2f6ae6c90b.tar.gz bcm5719-llvm-0882a5d5ec85ee26a6e94264864cea2f6ae6c90b.zip |
llvm-config: Quick fix for cross compilation. Don't be confsed between host and target. It has been there since r252532.
FIXME: The clause may use conditions of host compiler, not HOST_TRIPLE.
llvm-svn: 260343
Diffstat (limited to 'llvm/tools/llvm-config/llvm-config.cpp')
-rw-r--r-- | llvm/tools/llvm-config/llvm-config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp index a9449c5d817..2e8f318c4c2 100644 --- a/llvm/tools/llvm-config/llvm-config.cpp +++ b/llvm/tools/llvm-config/llvm-config.cpp @@ -352,7 +352,7 @@ int main(int argc, char **argv) { StringRef SharedExt, SharedVersionedExt, SharedDir, SharedPrefix, StaticExt, StaticPrefix, StaticDir = "lib", DirSep = "/"; - const Triple HostTriple(Triple::normalize(LLVM_DEFAULT_TARGET_TRIPLE)); + const Triple HostTriple(Triple::normalize(LLVM_HOST_TRIPLE)); if (HostTriple.isOSWindows()) { SharedExt = "dll"; SharedVersionedExt = LLVM_DYLIB_VERSION ".dll"; |