Compare commits
3 commits
67220715ff
...
d598171672
Author | SHA1 | Date | |
---|---|---|---|
d598171672 | |||
d03dc3eb10 | |||
9128fc9aa7 |
1 changed files with 0 additions and 43 deletions
|
@ -28,49 +28,6 @@ endif()
|
||||||
|
|
||||||
add_executable(simplearchiver ${SimpleArchiver_SOURCES})
|
add_executable(simplearchiver ${SimpleArchiver_SOURCES})
|
||||||
|
|
||||||
target_compile_options(simplearchiver PUBLIC
|
|
||||||
-Wall -Wformat -Wformat=2 -Wconversion -Wimplicit-fallthrough
|
|
||||||
-Werror=format-security
|
|
||||||
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
|
|
||||||
-D_GLIBCXX_ASSERTIONS
|
|
||||||
-fstrict-flex-arrays=3
|
|
||||||
-fstack-clash-protection -fstack-protector-strong
|
|
||||||
-Wl,-z,nodlopen -Wl,-z,noexecstack
|
|
||||||
-Wl,-z,relro -Wl,-z,now
|
|
||||||
-Wl,--as-needed -Wl,--no-copy-dt-needed-entries
|
|
||||||
-fPIE -pie
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_options(simplearchiver PUBLIC
|
|
||||||
-Wall -Wformat -Wformat=2 -Wconversion -Wimplicit-fallthrough
|
|
||||||
-Werror=format-security
|
|
||||||
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
|
|
||||||
-D_GLIBCXX_ASSERTIONS
|
|
||||||
-fstrict-flex-arrays=3
|
|
||||||
-fstack-clash-protection -fstack-protector-strong
|
|
||||||
-Wl,-z,nodlopen -Wl,-z,noexecstack
|
|
||||||
-Wl,-z,relro -Wl,-z,now
|
|
||||||
-Wl,--as-needed -Wl,--no-copy-dt-needed-entries
|
|
||||||
-fPIE -pie
|
|
||||||
)
|
|
||||||
|
|
||||||
# Inhibit format-string-related warning in src/archiver.c .
|
|
||||||
set_source_files_properties(src/archiver.c
|
|
||||||
PROPERTIES
|
|
||||||
COMPILE_FLAGS -Wno-format-nonliteral
|
|
||||||
)
|
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
|
||||||
target_compile_options(simplearchiver PUBLIC
|
|
||||||
-fno-delete-null-pointer-checks -fno-strict-overflow
|
|
||||||
-fno-strict-aliasing -ftrivial-auto-var-init=zero
|
|
||||||
)
|
|
||||||
target_link_options(simplearchiver PUBLIC
|
|
||||||
-fno-delete-null-pointer-checks -fno-strict-overflow
|
|
||||||
-fno-strict-aliasing -ftrivial-auto-var-init=zero
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_executable(test_datastructures
|
add_executable(test_datastructures
|
||||||
src/data_structures/test.c
|
src/data_structures/test.c
|
||||||
src/data_structures/linked_list.c
|
src/data_structures/linked_list.c
|
||||||
|
|
Loading…
Reference in a new issue