aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
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";