From 4d555e8b95010084a105baba1e5fcd12ca273204 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 15 Oct 2021 22:32:09 -0400 Subject: [PATCH] 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 :^) --- Meta/Lagom/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 889c96845e..c86da94434 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -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)