|
@@ -66,96 +66,101 @@ set(SRC_PERFORMANCE
|
|
|
add_library(core STATIC ${SRC})
|
|
|
target_include_directories(core PUBLIC ".")
|
|
|
target_compile_options(core PUBLIC
|
|
|
- -Wdeprecated-enum-float-conversion
|
|
|
- -Wctad-maybe-unsupported
|
|
|
- -Werror
|
|
|
- -Wdeprecated-enum-enum-conversion
|
|
|
- -Winvalid-imported-macros
|
|
|
- -Wextra
|
|
|
- -Wzero-as-null-pointer-constant
|
|
|
- -Wframe-larger-than=8388608
|
|
|
- -Wundef
|
|
|
- -Wunused-const-variable=2
|
|
|
- -Wconditionally-supported
|
|
|
- -Wwrite-strings
|
|
|
- -Wlarger-than=1073741824
|
|
|
- -Wimplicit-fallthrough=5
|
|
|
- -Wduplicated-cond
|
|
|
- -Wdisabled-optimization
|
|
|
- -Wsuggest-final-methods
|
|
|
- -Wformat-signedness
|
|
|
- -Wtrivial-auto-var-init
|
|
|
- -Wmissing-include-dirs
|
|
|
- -Winfinite-recursion
|
|
|
- -Wdeprecated-copy-dtor
|
|
|
+ -fdiagnostics-color=always
|
|
|
+ -fno-exceptions
|
|
|
+ -fno-rtti
|
|
|
+ -fno-threadsafe-statics
|
|
|
+ -nostdinc++
|
|
|
+ -pedantic
|
|
|
+ -pedantic-errors
|
|
|
+ -Waligned-new=all
|
|
|
+ -Wall
|
|
|
+ -Walloca
|
|
|
+ -Walloc-zero
|
|
|
-Wanalyzer-too-complex
|
|
|
- -Wduplicated-branches
|
|
|
- -Wstrict-null-sentinel
|
|
|
- -Wmissing-declarations
|
|
|
- -Wformat-truncation=2
|
|
|
- -Wmultiple-inheritance
|
|
|
- -Wstack-usage=8388608
|
|
|
- -Winit-self
|
|
|
- -Wsynth
|
|
|
- -Wvirtual-inheritance
|
|
|
- -Wstringop-overflow=4
|
|
|
+ -Warith-conversion
|
|
|
+ -Warray-bounds=2
|
|
|
+ -Warray-parameter
|
|
|
+ -Wattribute-alias=2
|
|
|
+ -Wbidi-chars=any
|
|
|
+ -Wcast-align=strict
|
|
|
-Wcast-qual
|
|
|
- -Wshadow
|
|
|
- -Wsuggest-final-types
|
|
|
- -Woverloaded-virtual
|
|
|
+ -Wcatch-value=3
|
|
|
+ -Wcomma-subscript
|
|
|
+ -Wconditionally-supported
|
|
|
-Wconversion
|
|
|
- -Walloca
|
|
|
- -Woverlength-strings
|
|
|
+ -Wctad-maybe-unsupported
|
|
|
-Wctor-dtor-privacy
|
|
|
- -Wswitch-enum
|
|
|
- -pedantic
|
|
|
- -Wstrict-overflow=2
|
|
|
- -Wcast-align=strict
|
|
|
+ -Wdate-time
|
|
|
+ -Wdeprecated-copy-dtor
|
|
|
+ -Wdeprecated-enum-enum-conversion
|
|
|
+ -Wdeprecated-enum-float-conversion
|
|
|
+ -Wdisabled-optimization
|
|
|
+ -Wdouble-promotion
|
|
|
+ -Wduplicated-branches
|
|
|
+ -Wduplicated-cond
|
|
|
+ -Weffc++
|
|
|
+ -Wenum-compare
|
|
|
+ -Wenum-conversion
|
|
|
+ -Werror
|
|
|
+ -Wextra
|
|
|
+ -Wextra-semi
|
|
|
-Wfloat-equal
|
|
|
-Wformat=2
|
|
|
- -Wattribute-alias=2
|
|
|
-Wformat-overflow=2
|
|
|
+ -Wformat-signedness
|
|
|
+ -Wformat-truncation=2
|
|
|
+ -Wframe-larger-than=8388608
|
|
|
+ -Wimplicit-fallthrough=5
|
|
|
+ -Winfinite-recursion
|
|
|
+ -Winit-self
|
|
|
+ -Winvalid-imported-macros
|
|
|
-Winvalid-pch
|
|
|
- -Wvolatile
|
|
|
- -Wshift-overflow=2
|
|
|
- -Warith-conversion
|
|
|
- -Wcatch-value=3
|
|
|
- -Wnoexcept
|
|
|
- -Wuse-after-free=3
|
|
|
- -Wdouble-promotion
|
|
|
- -Wunused-macros
|
|
|
- -Wregister
|
|
|
- -Wsuggest-override
|
|
|
- -Wnull-dereference
|
|
|
- -Wtrampolines
|
|
|
+ -Wlarger-than=1073741824
|
|
|
-Wlogical-op
|
|
|
+ -Wmismatched-tags
|
|
|
+ -Wmissing-braces
|
|
|
+ -Wmissing-declarations
|
|
|
+ -Wmissing-include-dirs
|
|
|
+ -Wmultichar
|
|
|
+ -Wmultiple-inheritance
|
|
|
+ -Wnoexcept
|
|
|
-Wnon-virtual-dtor
|
|
|
- -pedantic-errors
|
|
|
- -Wbidi-chars=any
|
|
|
- -Wdate-time
|
|
|
- -Warray-parameter
|
|
|
- -Waligned-new=all
|
|
|
+ -Wnormalized=nfkc
|
|
|
+ -Wnull-dereference
|
|
|
-Wold-style-cast
|
|
|
- -Wmultichar
|
|
|
- -Wstack-protector
|
|
|
- -Wmissing-braces
|
|
|
- -Warray-bounds=2
|
|
|
- -Walloc-zero
|
|
|
+ -Woverlength-strings
|
|
|
+ -Woverloaded-virtual
|
|
|
-Wplacement-new=2
|
|
|
- -Wmismatched-tags
|
|
|
- -Wcomma-subscript
|
|
|
- -Wall
|
|
|
- -Wbidi-chars
|
|
|
- -Wredundant-tags
|
|
|
- -Wenum-conversion
|
|
|
- -Wall
|
|
|
-Wredundant-decls
|
|
|
+ -Wredundant-tags
|
|
|
+ -Wregister
|
|
|
+ -Wshadow
|
|
|
+ -Wshift-overflow=2
|
|
|
-Wsign-conversion
|
|
|
- -fdiagnostics-color=always
|
|
|
- -nostdinc++
|
|
|
- -fno-exceptions
|
|
|
- -fno-rtti
|
|
|
- -fno-threadsafe-statics
|
|
|
+ -Wsign-promo
|
|
|
+ -Wstack-protector
|
|
|
+ -Wstack-usage=8388608
|
|
|
+ -Wstrict-null-sentinel
|
|
|
+ -Wstrict-overflow=5
|
|
|
+ -Wstringop-overflow=4
|
|
|
+ -Wsuggest-final-methods
|
|
|
+ -Wsuggest-final-types
|
|
|
+ -Wsuggest-override
|
|
|
+ -Wswitch-enum
|
|
|
+ -Wsynth
|
|
|
+ -Wtrampolines
|
|
|
+ -Wtrivial-auto-var-init
|
|
|
+ -Wundef
|
|
|
+ -Wunreachable-code
|
|
|
+ -Wunused-const-variable=2
|
|
|
+ -Wunused-macros
|
|
|
+ -Wuse-after-free=3
|
|
|
+ -Wvirtual-inheritance
|
|
|
+ -Wvla
|
|
|
+ -Wvolatile
|
|
|
+ -Wwrite-strings
|
|
|
+ -Wzero-as-null-pointer-constant
|
|
|
)
|
|
|
target_compile_definitions(core PUBLIC CORE_LOG_LEVEL=4)
|
|
|
target_link_libraries(core PUBLIC -nodefaultlibs c m)
|