aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-12 10:59:53 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-12 10:59:53 +0100
commitd7d46f8537f31ea0e0b0d391d53ac93c276cb53e (patch)
tree1565658c3954f2e4049721ffd1060ebdeceeb736 /src
parentd41b214226b45f4660e423b08ec1b081df6c91eb (diff)
Only default to lld in release mode
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index de09301..2fc470e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -670,7 +670,7 @@ static int buildProject(int argc, const _tinydir_char_t **argv, bool run)
// and we dont know which compiler was used to compile to code so we disable automatic
// use of lld by default. The user can still force lld with --linker=lld, if they are
// sure that they used clang to compile the code.
- if(!use_lto && is_lld_linker_installed())
+ if(!use_lto && optimizationLevel != OPT_LEV_DEBUG && !include_debug_symbols_in_release && is_lld_linker_installed())
linker = "lld";
else if(is_gold_linker_installed())
linker = "gold";