Lagom: Do not use -fno-sematic-interposition in fuzzer builds

Apparently it breaks the fuzzer build. There's probably a better fix
for this, but for now just unbreak the fuzzer build.
Keep this for non-fuzzer builds though since it's apparently a 17%
speedup for running test262 tests :^)
This commit is contained in:
Nico Weber 2021-10-15 22:32:09 -04:00 committed by Linus Groh
parent 1ea3f34823
commit 4d555e8b95
Notes: sideshowbarker 2024-07-18 02:18:35 +09:00

View file

@ -68,7 +68,9 @@ add_compile_options(-Wall -Wextra -Werror)
add_compile_options(-fPIC -g)
add_compile_options(-Wno-maybe-uninitialized)
add_compile_options(-fno-exceptions)
add_compile_options(-fno-semantic-interposition)
if (NOT ENABLE_FUZZER_SANITIZER)
add_compile_options(-fno-semantic-interposition)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)