forked from OSchip/llvm-project
Revert 332750, llvm part (see comment on D46910).
llvm-svn: 332823
This commit is contained in:
parent
5062e4b1ae
commit
41597b92b1
|
@ -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)
|
||||
|
|
|
@ -64,5 +64,5 @@ std::string sys::getDefaultTargetTriple() {
|
|||
TargetTripleString = EnvTriple;
|
||||
#endif
|
||||
|
||||
return TargetTripleString;
|
||||
return Triple::normalize(TargetTripleString);
|
||||
}
|
||||
|
|
|
@ -30,5 +30,5 @@ std::string sys::getDefaultTargetTriple() {
|
|||
Triple = EnvTriple;
|
||||
#endif
|
||||
|
||||
return Triple;
|
||||
return Triple::normalize(Triple);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue