Lagom: Build with -fno-no-semantic-interposition

Lagom: Build with -fno-no-semantic-interposition

We build with this in non-lagom builds, and serenity's gcc even adds it
to its CC1_SPEC. Let's use it for lagom too.

Reduces the number of dynamic relocations in liblagom-js.so.0.0.0 (per
`objdump -R`) from 15133 to 14534, and increases its size back to 91M
(95156800 bytes), probably due to more inlining being possible.
This might help perf of lagom binaries.
This commit is contained in:
Nico Weber 2021-10-15 14:28:13 -04:00 committed by Linus Groh
parent b11d660ff8
commit ec9488a58c
Notes: sideshowbarker 2024-07-18 02:19:40 +09:00

View File

@ -68,6 +68,7 @@ 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)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)