some cleanups (#2601)

* exclude the *_sanitized fuzz-client dependencies from all as well

* .gitignore: added CMake output folders and removed a duplicated entry
This commit is contained in:
Oliver Stöneberg 2020-04-09 09:23:31 +02:00 committed by GitHub
parent 8e9d7290b2
commit aaffd1f761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@ -80,7 +80,6 @@ htmlreport/.tox/
htmlreport/MANIFEST htmlreport/MANIFEST
# Backup files and stuff from patches # Backup files and stuff from patches
*.orig
*.rej *.rej
*~ *~
@ -108,3 +107,4 @@ man/manual.tex
# CLion # CLion
.idea .idea
/.metadata/ /.metadata/
cmake-*

View File

@ -3,7 +3,7 @@ file(GLOB srcs "*.cpp")
add_library(simplecpp_objs OBJECT ${srcs} ${hdrs}) add_library(simplecpp_objs OBJECT ${srcs} ${hdrs})
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_library(simplecpp_objs_sanitized OBJECT ${srcs} ${hdrs}) add_library(simplecpp_objs_sanitized OBJECT EXCLUDE_FROM_ALL ${srcs} ${hdrs})
target_compile_options(simplecpp_objs_sanitized PRIVATE -fsanitize=address) target_compile_options(simplecpp_objs_sanitized PRIVATE -fsanitize=address)
endif() endif()

View File

@ -7,6 +7,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(tinyxml_objs PRIVATE -Wno-suggest-attribute=format) target_compile_options(tinyxml_objs PRIVATE -Wno-suggest-attribute=format)
endif() endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_library(tinyxml_objs_sanitized OBJECT ${srcs} ${hdrs}) add_library(tinyxml_objs_sanitized OBJECT EXCLUDE_FROM_ALL ${srcs} ${hdrs})
target_compile_options(tinyxml_objs_sanitized PRIVATE -fsanitize=address) target_compile_options(tinyxml_objs_sanitized PRIVATE -fsanitize=address)
endif() endif()

View File

@ -38,6 +38,6 @@ endif()
add_library(lib_objs OBJECT ${srcs_lib} ${hdrs}) add_library(lib_objs OBJECT ${srcs_lib} ${hdrs})
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_library(lib_objs_sanitized OBJECT ${srcs_lib} ${hdrs}) add_library(lib_objs_sanitized OBJECT EXCLUDE_FROM_ALL ${srcs_lib} ${hdrs})
target_compile_options(lib_objs_sanitized PRIVATE -fsanitize=address) target_compile_options(lib_objs_sanitized PRIVATE -fsanitize=address)
endif() endif()