mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-17 16:31:27 -04:00
Formatting
This commit is contained in:
parent
192dff8d81
commit
bb4b41ab3d
@ -154,15 +154,30 @@ if(WITH_TESTS)
|
|||||||
include(GoogleTest)
|
include(GoogleTest)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(xxhash
|
add_library(xxhash xxHash/xxhash.c)
|
||||||
xxHash/xxhash.c
|
|
||||||
)
|
|
||||||
|
|
||||||
target_compile_options(xxhash PRIVATE -Wall -Wextra -Wconversion -Wcast-qual -Wcast-align -Wshadow
|
target_compile_options(
|
||||||
-Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement
|
xxhash
|
||||||
-Wstrict-prototypes -Wundef -Wpointer-arith -Wformat-security
|
PRIVATE -Wall
|
||||||
-Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings
|
-Wextra
|
||||||
-Wredundant-decls -Wstrict-overflow=2)
|
-Wconversion
|
||||||
|
-Wcast-qual
|
||||||
|
-Wcast-align
|
||||||
|
-Wshadow
|
||||||
|
-Wstrict-aliasing=1
|
||||||
|
-Wswitch-enum
|
||||||
|
-Wdeclaration-after-statement
|
||||||
|
-Wstrict-prototypes
|
||||||
|
-Wundef
|
||||||
|
-Wpointer-arith
|
||||||
|
-Wformat-security
|
||||||
|
-Wvla
|
||||||
|
-Wformat=2
|
||||||
|
-Winit-self
|
||||||
|
-Wfloat-equal
|
||||||
|
-Wwrite-strings
|
||||||
|
-Wredundant-decls
|
||||||
|
-Wstrict-overflow=2)
|
||||||
|
|
||||||
list(
|
list(
|
||||||
APPEND
|
APPEND
|
||||||
@ -391,17 +406,20 @@ foreach(tgt dwarfs ${BINARY_TARGETS})
|
|||||||
add_dependencies(${tgt} metadata_thrift)
|
add_dependencies(${tgt} metadata_thrift)
|
||||||
|
|
||||||
if(ENABLE_ASAN)
|
if(ENABLE_ASAN)
|
||||||
target_compile_options(${tgt} PRIVATE -fsanitize=address -fno-omit-frame-pointer)
|
target_compile_options(${tgt} PRIVATE -fsanitize=address
|
||||||
|
-fno-omit-frame-pointer)
|
||||||
target_link_options(${tgt} PRIVATE -fsanitize=address)
|
target_link_options(${tgt} PRIVATE -fsanitize=address)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_TSAN)
|
if(ENABLE_TSAN)
|
||||||
target_compile_options(${tgt} PRIVATE -fsanitize=thread -fno-omit-frame-pointer)
|
target_compile_options(${tgt} PRIVATE -fsanitize=thread
|
||||||
|
-fno-omit-frame-pointer)
|
||||||
target_link_options(${tgt} PRIVATE -fsanitize=thread)
|
target_link_options(${tgt} PRIVATE -fsanitize=thread)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_UBSAN)
|
if(ENABLE_UBSAN)
|
||||||
target_compile_options(${tgt} PRIVATE -fsanitize=undefined -fno-omit-frame-pointer)
|
target_compile_options(${tgt} PRIVATE -fsanitize=undefined
|
||||||
|
-fno-omit-frame-pointer)
|
||||||
target_link_options(${tgt} PRIVATE -fsanitize=undefined)
|
target_link_options(${tgt} PRIVATE -fsanitize=undefined)
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user