diff options
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 345daebf7..9a03539f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,6 +145,8 @@ if(BYN_ENABLE_LTO) if(NOT APPLE) add_link_flag("-fuse-ld=lld") endif() + set_property(GLOBAL APPEND PROPERTY JOB_POOLS link_job_pool=2) + set(CMAKE_JOB_POOL_LINK link_job_pool) add_compile_flag("-flto=thin") endif() |