File tree 1 file changed +3
-15
lines changed
compiler-rt/cmake/Modules
1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -362,22 +362,10 @@ macro(construct_compiler_rt_default_triple)
362
362
message (FATAL_ERROR "CMAKE_C_COMPILER_TARGET must also be set when COMPILER_RT_DEFAULT_TARGET_ONLY is ON" )
363
363
endif ()
364
364
message (STATUS "cmake c compiler target: ${CMAKE_C_COMPILER_TARGET} " )
365
- if ("${CMAKE_C_COMPILER_ID} " MATCHES "Clang" )
366
- execute_process (COMMAND ${CMAKE_C_COMPILER} --target =${CMAKE_C_COMPILER_TARGET} -print-effective-triple
367
- OUTPUT_VARIABLE COMPILER_RT_DEFAULT_TARGET_TRIPLE
368
- OUTPUT_STRIP_TRAILING_WHITESPACE)
369
- else ()
370
- set (COMPILER_RT_DEFAULT_TARGET_TRIPLE ${CMAKE_C_COMPILER_TARGET} )
371
- endif ()
365
+ set (COMPILER_RT_DEFAULT_TARGET_TRIPLE ${CMAKE_C_COMPILER_TARGET} )
372
366
else ()
373
- if ("${CMAKE_C_COMPILER_ID} " MATCHES "Clang" )
374
- execute_process (COMMAND ${CMAKE_C_COMPILER} --target =${LLVM_TARGET_TRIPLE} -print-effective-triple
375
- OUTPUT_VARIABLE COMPILER_RT_DEFAULT_TARGET_TRIPLE
376
- OUTPUT_STRIP_TRAILING_WHITESPACE)
377
- else ()
378
- set (COMPILER_RT_DEFAULT_TARGET_TRIPLE ${LLVM_TARGET_TRIPLE} CACHE STRING
379
- "Default triple for which compiler-rt runtimes will be built." )
380
- endif ()
367
+ set (COMPILER_RT_DEFAULT_TARGET_TRIPLE ${LLVM_TARGET_TRIPLE} CACHE STRING
368
+ "Default triple for which compiler-rt runtimes will be built." )
381
369
endif ()
382
370
383
371
string (REPLACE "-" ";" LLVM_TARGET_TRIPLE_LIST ${COMPILER_RT_DEFAULT_TARGET_TRIPLE} )
You can’t perform that action at this time.
0 commit comments