summaryrefslogtreecommitdiff
path: root/Meta/CMake/lagom_compile_options.cmake
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2022-07-04 09:48:13 +0200
committerAndreas Kling <kling@serenityos.org>2022-07-04 21:46:02 +0200
commitfc3532e9b7b69d8bcbc8a8be3ce7f97c4460561a (patch)
tree113b92d9b6c849f4fd67b7837e2517db80fbc39f /Meta/CMake/lagom_compile_options.cmake
parent28a3c064c5c8dc8ed3abc3f0c09cebd98a1f9f73 (diff)
downloadserenity-fc3532e9b7b69d8bcbc8a8be3ce7f97c4460561a.zip
Lagom: Do not set -fno-semantic-interposition on macOS
The Mach-O file format does not have ELF's interposition rules, so this flag does not make sense for macOS builds. While GCC silently accepts the unsupported option, Clang issues a warning for it. This commit makes it possible to build Lagom with LLVM from Homebrew.
Diffstat (limited to 'Meta/CMake/lagom_compile_options.cmake')
-rw-r--r--Meta/CMake/lagom_compile_options.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/CMake/lagom_compile_options.cmake b/Meta/CMake/lagom_compile_options.cmake
index 08121f5629..a2da3f136e 100644
--- a/Meta/CMake/lagom_compile_options.cmake
+++ b/Meta/CMake/lagom_compile_options.cmake
@@ -9,6 +9,6 @@ add_compile_options(-fno-exceptions)
add_compile_options(-fdiagnostics-color=always)
add_compile_options(-fPIC -g)
add_compile_options(-O2)
-if (NOT ENABLE_FUZZERS)
+if (NOT ENABLE_FUZZERS AND NOT APPLE)
add_compile_options(-fno-semantic-interposition)
endif()