create ld symlink to ld.lld for gcc
This commit is contained in:
parent
5d5a6fe8ab
commit
3a4805fe50
@ -68,6 +68,19 @@ ob_define(AUTO_FDO_OPT "")
|
||||
if(ENABLE_AUTO_FDO)
|
||||
# file name pattern [observer.prof.{current_timestamp ms}]
|
||||
set(AUTO_FDO_OPT "-finline-functions -fprofile-sample-use=${CMAKE_SOURCE_DIR}/observer.prof.1702984872675")
|
||||
# set(AUTO_FDO_OPT "-fprofile-sample-use=${CMAKE_SOURCE_DIR}/observer.prof")
|
||||
|
||||
# create ld symlink to ld.lld for gcc
|
||||
if(EXISTS "${DEVTOOLS_DIR}/bin/ld.lld")
|
||||
execute_process(COMMAND cmake -E create_symlink
|
||||
"${DEVTOOLS_DIR}/bin/ld.lld" # Old name
|
||||
"${CMAKE_SOURCE_DIR}/deps/3rd/compile/ld" # New name
|
||||
)
|
||||
elseif(EXISTS "/usr/bin/ld.lld")
|
||||
execute_process(COMMAND cmake -E create_symlink
|
||||
"/usr/bin/ld.lld" # Old name
|
||||
"${CMAKE_SOURCE_DIR}/deps/3rd/compile/ld" # New name
|
||||
)
|
||||
endif()
|
||||
|
||||
ob_define(THIN_LTO_OPT "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user