[PATCH] D117144: [CMake][ELF] Disable -fno-semantic-interposition on debug builds
Luís Ferreira via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 13 09:11:26 PST 2022
ljmf00 added a comment.
In D117144#3239523 <https://reviews.llvm.org/D117144#3239523>, @MaskRay wrote:
> The exact issue is `-fsanitize=fuzzer-no-link -fno-semantic-interposition -fPIC`. The -O level does not matter.
Correct, although, it is still an optimization flag, at least according to GCC documentation about optimization options (https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html) and as described by the above comments in the CMake configuration. Looking into the discussion on D102453 <https://reviews.llvm.org/D102453>, shouldn't we prefer reliability on debug builds rather than speed? Another point to take into consideration is build/link times, does this affect it?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117144/new/
https://reviews.llvm.org/D117144
More information about the llvm-commits
mailing list