[llvm] r332823 - Revert 332750, llvm part (see comment on D46910).

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Sun May 20 16:03:17 PDT 2018


Author: nico
Date: Sun May 20 16:03:17 2018
New Revision: 332823

URL: http://llvm.org/viewvc/llvm-project?rev=332823&view=rev
Log:
Revert 332750, llvm part (see comment on D46910).

Modified:
    llvm/trunk/cmake/modules/GetHostTriple.cmake
    llvm/trunk/lib/Support/Unix/Host.inc
    llvm/trunk/lib/Support/Windows/Host.inc

Modified: llvm/trunk/cmake/modules/GetHostTriple.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/GetHostTriple.cmake?rev=332823&r1=332822&r2=332823&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/GetHostTriple.cmake (original)
+++ llvm/trunk/cmake/modules/GetHostTriple.cmake Sun May 20 16:03:17 2018
@@ -4,15 +4,15 @@
 function( get_host_triple var )
   if( MSVC )
     if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
-      set( value "x86_64-pc-windows-msvc" )
+      set( value "x86_64-pc-win32" )
     else()
-      set( value "i686-pc-windows-msvc" )
+      set( value "i686-pc-win32" )
     endif()
   elseif( MINGW AND NOT MSYS )
     if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
-      set( value "x86_64-w64-windows-gnu" )
+      set( value "x86_64-w64-mingw32" )
     else()
-      set( value "i686-pc-windows-gnu" )
+      set( value "i686-pc-mingw32" )
     endif()
   else( MSVC )
     set(config_guess ${LLVM_MAIN_SRC_DIR}/cmake/config.guess)

Modified: llvm/trunk/lib/Support/Unix/Host.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Host.inc?rev=332823&r1=332822&r2=332823&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Host.inc (original)
+++ llvm/trunk/lib/Support/Unix/Host.inc Sun May 20 16:03:17 2018
@@ -64,5 +64,5 @@ std::string sys::getDefaultTargetTriple(
     TargetTripleString = EnvTriple;
 #endif
 
-  return TargetTripleString;
+  return Triple::normalize(TargetTripleString);
 }

Modified: llvm/trunk/lib/Support/Windows/Host.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Host.inc?rev=332823&r1=332822&r2=332823&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Host.inc (original)
+++ llvm/trunk/lib/Support/Windows/Host.inc Sun May 20 16:03:17 2018
@@ -30,5 +30,5 @@ std::string sys::getDefaultTargetTriple(
     Triple = EnvTriple;
 #endif
 
-  return Triple;
+  return Triple::normalize(Triple);
 }




More information about the llvm-commits mailing list