diff options
author | Carbenium <carbenium@outlook.com> | 2020-07-24 19:00:44 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-23 23:07:56 +0100 |
commit | b336ed89961c25ff39317b1f57e8aa4a70a0994c (patch) | |
tree | 77448b70ca9470e189f884619a2c6748c8877f60 /cmake/options.cmake | |
parent | 10f835b058ffa517866b08efe6634b0d5226bb66 (diff) |
Build: Add WITH_LD_GOLD option to use gold linker on unix
gold is an ELF-only linker which has a better performance
than the default ld.
(cherry picked from commit 796e2b32e03e7b1a56e44bd4b8988f9156bbb026)
Diffstat (limited to 'cmake/options.cmake')
-rw-r--r-- | cmake/options.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake index 9cc6f9cbe87..0097df809be 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -55,3 +55,7 @@ set(WITH_SOURCE_TREE "hierarchical" CACHE STRING "Build the source tree for I set_property(CACHE WITH_SOURCE_TREE PROPERTY STRINGS no flat hierarchical hierarchical-folders) option(WITHOUT_GIT "Disable the GIT testing routines" 0) option(BUILD_TESTING "Build test suite" 0) + +if(UNIX) + option(USE_LD_GOLD "Use GNU gold linker" 0) +endif() |