support set LTO_JOBS using sh build.sh rpm -DLTO_JOBS=NUM
This commit is contained in:
parent
1b72a5a0e4
commit
00543144bd
@ -23,6 +23,7 @@ ob_define(OB_CMAKE_RULES_CHECK ON)
|
||||
ob_define(OB_STATIC_LINK_LGPL_DEPS ON)
|
||||
ob_define(HOTFUNC_PATH "${CMAKE_SOURCE_DIR}/hotfuncs.txt")
|
||||
ob_define(OB_BUILD_CCLS OFF)
|
||||
ob_define(LTO_JOBS 32)
|
||||
# get compiler from build.sh
|
||||
ob_define(OB_CC "")
|
||||
ob_define(OB_CXX "")
|
||||
@ -62,7 +63,7 @@ ob_define(THIN_LTO_CONCURRENCY_LINK "")
|
||||
|
||||
if(ENABLE_THIN_LTO)
|
||||
set(THIN_LTO_OPT "-flto=thin -fwhole-program-vtables")
|
||||
set(THIN_LTO_CONCURRENCY_LINK "-Wl,--thinlto-jobs=32,--lto-whole-program-visibility")
|
||||
set(THIN_LTO_CONCURRENCY_LINK "-Wl,--thinlto-jobs=${LTO_JOBS},--lto-whole-program-visibility")
|
||||
endif()
|
||||
|
||||
set(ob_close_modules_static_name "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user