don't explicitely set `LLD` on MacOS
This commit is contained in:
parent
159b97517b
commit
430cf4dbaa
|
@ -9,7 +9,9 @@ function(env_set var_name default_value type docstring)
|
|||
endfunction()
|
||||
|
||||
function(default_linker var_name)
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
if(APPLE OR WIN32)
|
||||
set("${var_name}" "DEFAULT" PARENT_SCOPE)
|
||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
find_program(lld_path ld.lld "Path to LLD - is only used to determine default linker")
|
||||
if(lld_path)
|
||||
set("${var_name}" "LLD" PARENT_SCOPE)
|
||||
|
|
Loading…
Reference in New Issue