Disable parenthesis warning in GCC. This is handled already in the formatter, and goes against bugprone-macro-parentheses.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-01-02 00:01:20 +01:00
parent a9c4dfdece
commit 54ccac6d96
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 5 additions and 5 deletions

View File

@ -3,6 +3,11 @@ project(MalachScript)
# Enable all warnings, and make them error when occurring.
add_compile_options(-Wall -Wextra -Werror)
# Except this warning, which goes against bugprone-macro-parentheses in clang-tidy
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options(-Wno-parentheses)
endif ()
# We like new stuff, so set the c++ standard to c++20.
set(CMAKE_CXX_STANDARD 20)
@ -13,11 +18,6 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_link_options(-fuse-ld=lld)
endif ()
if (NOT WINDOWS)
# Include debug symbols in all linux builds
add_compile_options(-g -gfull -g3)
endif ()
file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp")
add_library(MalachScript SHARED ${SRC_FILES})