[llvm] r260343 - llvm-config: Quick fix for cross compilation. Don't be confsed between host and target. It has been there since r252532.

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 9 17:12:55 PST 2016


Author: chapuni
Date: Tue Feb  9 19:12:55 2016
New Revision: 260343

URL: http://llvm.org/viewvc/llvm-project?rev=260343&view=rev
Log:
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.

Modified:
    llvm/trunk/tools/llvm-config/llvm-config.cpp

Modified: llvm/trunk/tools/llvm-config/llvm-config.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-config/llvm-config.cpp?rev=260343&r1=260342&r2=260343&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config/llvm-config.cpp (original)
+++ llvm/trunk/tools/llvm-config/llvm-config.cpp Tue Feb  9 19:12:55 2016
@@ -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";




More information about the llvm-commits mailing list