From d7d46f8537f31ea0e0b0d391d53ac93c276cb53e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 12 Nov 2022 10:59:53 +0100 Subject: Only default to lld in release mode --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') 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"; -- cgit v1.2.3