From 9308d1858852bdc6f099025ca0482d7b3a32a9aa Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 10 Feb 2016 01:12:55 +0000 Subject: [PATCH 4/4] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260343 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-config/llvm-config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp index 315e5e1..346c9d9 100644 --- a/tools/llvm-config/llvm-config.cpp +++ b/tools/llvm-config/llvm-config.cpp @@ -327,7 +327,7 @@ int main(int argc, char **argv) { StringRef SharedExt, SharedVersionedExt, SharedDir, SharedPrefix, StaticExt, StaticPrefix, StaticDir = "lib"; - const Triple HostTriple(Triple::normalize(LLVM_DEFAULT_TARGET_TRIPLE)); + const Triple HostTriple(Triple::normalize(LLVM_HOST_TRIPLE)); if (HostTriple.isOSWindows()) { SharedExt = "dll"; SharedVersionedExt = PACKAGE_VERSION ".dll"; -- 2.7.4