summaryrefslogtreecommitdiff
path: root/Meta/CMake/lagom_compile_options.cmake
blob: e83ced5f7d9f539afca4e342d46aa7688dbedfbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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(-Wno-unused-command-line-argument)
add_compile_options(-fsigned-char)
add_compile_options(-fno-exceptions)
add_compile_options(-fdiagnostics-color=always)
add_compile_options(-g1)
add_compile_options(-O2)
if (NOT ENABLE_FUZZERS AND NOT APPLE)
    add_compile_options(-fno-semantic-interposition)
endif()
if (NOT WIN32)
    add_compile_options(-fPIC)
endif()