@@ -15,31 +15,6 @@ if(@depends_crosscompiling@)
1515 set (CMAKE_SYSTEM_PROCESSOR @host_arch@)
1616endif ()
1717
18- function (split_compiler_launcher env_compiler launcher compiler)
19- set (${launcher} )
20- list (GET ${env_compiler} 0 start_token)
21- if (start_token STREQUAL "env" )
22- set (${compiler} )
23- set (env_arg_parsing TRUE )
24- foreach (token IN LISTS ${env_compiler} )
25- if (env_arg_parsing)
26- list (APPEND ${launcher} ${token} )
27- set (env_arg_parsing FALSE )
28- continue ()
29- elseif (token STREQUAL "-u" )
30- list (APPEND ${launcher} ${token} )
31- set (env_arg_parsing TRUE )
32- continue ()
33- endif ()
34- list (APPEND ${compiler} ${token} )
35- endforeach ()
36- else ()
37- set (${compiler} ${${env_compiler} })
38- endif ()
39- set (${launcher} ${${launcher} } PARENT_SCOPE)
40- set (${compiler} ${${compiler} } PARENT_SCOPE)
41- endfunction ()
42-
4318if (NOT DEFINED CMAKE_C_FLAGS_INIT)
4419 set (CMAKE_C_FLAGS_INIT "@CFLAGS@" )
4520endif ()
@@ -51,9 +26,7 @@ if(NOT DEFINED CMAKE_C_FLAGS_DEBUG_INIT)
5126endif ()
5227
5328if (NOT DEFINED CMAKE_C_COMPILER)
54- set (DEPENDS_C_COMPILER_WITH_LAUNCHER @CC@)
55- split_compiler_launcher(DEPENDS_C_COMPILER_WITH_LAUNCHER CMAKE_C_COMPILER_LAUNCHER CMAKE_C_COMPILER)
56- set (CMAKE_C_LINKER_LAUNCHER ${CMAKE_C_COMPILER_LAUNCHER} )
29+ set (CMAKE_C_COMPILER @CC@)
5730endif ()
5831
5932if (NOT DEFINED CMAKE_CXX_FLAGS_INIT)
@@ -70,13 +43,8 @@ if(NOT DEFINED CMAKE_CXX_FLAGS_DEBUG_INIT)
7043endif ()
7144
7245if (NOT DEFINED CMAKE_CXX_COMPILER)
73- set (DEPENDS_CXX_COMPILER_WITH_LAUNCHER @CXX@)
74- split_compiler_launcher(DEPENDS_CXX_COMPILER_WITH_LAUNCHER CMAKE_CXX_COMPILER_LAUNCHER CMAKE_CXX_COMPILER)
75- set (CMAKE_CXX_LINKER_LAUNCHER ${CMAKE_CXX_COMPILER_LAUNCHER} )
76-
46+ set (CMAKE_CXX_COMPILER @CXX@)
7747 set (CMAKE_OBJCXX_COMPILER ${CMAKE_CXX_COMPILER} )
78- set (CMAKE_OBJCXX_COMPILER_LAUNCHER ${CMAKE_CXX_COMPILER_LAUNCHER} )
79- set (CMAKE_OBJCXX_LINKER_LAUNCHER ${CMAKE_CXX_LINKER_LAUNCHER} )
8048endif ()
8149
8250# The DEPENDS_COMPILE_DEFINITIONS* variables are to be treated as lists.
0 commit comments