aboutsummaryrefslogtreecommitdiff
path: root/src/CmakeModule.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-03-08 12:53:25 +0100
committerdec05eba <dec05eba@protonmail.com>2023-03-08 12:53:25 +0100
commit0697f410b05085cdaf767d5b6fd3fea056ec5bd3 (patch)
tree09c5a5c920b191edb0ceffe30ae0cc99de91b11d /src/CmakeModule.cpp
parentcc0eb4651e4b204fb7926ddd84bb830f432aabd3 (diff)
Add support for mold, add optimization flags for linking step
Diffstat (limited to 'src/CmakeModule.cpp')
-rw-r--r--src/CmakeModule.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CmakeModule.cpp b/src/CmakeModule.cpp
index e3b3918..063cced 100644
--- a/src/CmakeModule.cpp
+++ b/src/CmakeModule.cpp
@@ -239,7 +239,9 @@ namespace sibs
}
}
- if(!config.linker.empty())
+ if(config.linker == "mold")
+ cflags += TINYDIR_STRING(" -B/usr/lib/mold/");
+ else if(!config.linker.empty())
cflags += TINYDIR_STRING(" -fuse-ld=") + toFileString(config.linker);
cxxflags = cflags;