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
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
a9c4dfdece
commit
54ccac6d96
|
@ -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})
|
||||
|
||||
|
|
Loading…
Reference in New Issue