mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
fc3532e9b7
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.
14 lines
537 B
CMake
14 lines
537 B
CMake
include(${CMAKE_CURRENT_LIST_DIR}/common_compile_options.cmake)
|
|
|
|
add_compile_options(-Wno-implicit-const-int-float-conversion)
|
|
add_compile_options(-Wno-literal-suffix)
|
|
add_compile_options(-Wno-maybe-uninitialized)
|
|
add_compile_options(-Wno-unknown-warning-option)
|
|
add_compile_options(-fsigned-char)
|
|
add_compile_options(-fno-exceptions)
|
|
add_compile_options(-fdiagnostics-color=always)
|
|
add_compile_options(-fPIC -g)
|
|
add_compile_options(-O2)
|
|
if (NOT ENABLE_FUZZERS AND NOT APPLE)
|
|
add_compile_options(-fno-semantic-interposition)
|
|
endif()
|