Alexander Haase
5bfe8a8e51
Support multiple targets in add_sanitizers.
10 년 전
Sascha Kratky
ef64a48f19
start 1.7.9
10 년 전
Alexander Haase
8fe13da3a5
Added asan-wrapper.
In some special cases static linking the sanitizers won't work, and you have to
preload libasan. To find the right libasan depending on the application to be
executed, a wrapper script was added. The location of the wrapper script can be
accessed via ASan_WRAPPER variable.
10 년 전
Alexander Haase
8d8c0f7a4e
Bugfixes.
10 년 전
Alexander Haase
179e77d612
Added option for static linking gcc sanitizers.
If you like to preload a sanitized library in front of an application, it will
fail, because it is not the first in the library list anymore. This behaviour
is gcc specific - clang will static link the sanitizers instead. To get the
same for gcc, the new SANITIZE_LINK_STATIC flag will link the sanitizers
static in gcc environments.
Note: The preloaded executable must be sanitized, too! Otherwise ASan will
print an error message!
10 년 전
Alexander Haase
a6b6ae43db
Merge branch 'remove_optimization' into one_module
10 년 전
Alexander Haase
6d56fe50e7
Removed optimization flags.
Due optimizing the code is optional for using the sanitizers, the user should
set an optimisation level by his choice on his own.
10 년 전
Alexander Haase
1a68d6aefe
Little bugfixes.
10 년 전
Alexander Haase
1cefaef507
Added function to set sanitizer blacklist.
10 년 전
Alexander Haase
f566e2b9ec
Added checks to avoid bad sanitizer combinations.
Some sanitizers are not compatible with other sanitizers. Added some checks to
avoid these combinations at configuration time.
10 년 전
Alexander Haase
6975d64d6b
Flags will be searched only once per compiler.
If a compiler does not support sanitizing, it will not be checked a second time.
10 년 전
Alexander Haase
de1a134183
Check if MemorySanitizer is used on x86_64 Linux.
According to the MemorySanitizer documentation, it is only compatible with 64bit
Linux at the moment.
10 년 전
Alexander Haase
4d96db375f
Check if ThreadSanitizer is used on x86_64 Linux.
According to the ThreadSanitizer documentation, it is only compatible with 64bit
Linux at the moment.
10 년 전
Alexander Haase
03db9d9383
Restructured all sanitizer modules.
10 년 전
Alexander Haase
b492553f61
New central module FindSanitizers.cmake.
* Added a new module FindSanitizers with new function add_sanitizers to combine
all sanitizers in one function instead of adding each one by one.
* Code of FindASan.cmake was outdourced into helper functions, so that the code
may be used by other sanitizer modules, too.
* AddressSanitizer will be used with -O1 now to get a better performance.
10 년 전
Alexander Haase
8f2015a4d3
Changed copyright notice.
10 년 전
Sascha Kratky
40a46bf2fb
update history
10 년 전
Sascha Kratky
ca8b620ff6
set up LINK_LIBRARIES and INTERFACE_LINK_LIBRARIES correctly for unity target
10 년 전
Sascha Kratky
48a1ca2591
handle CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE
10 년 전
Sascha Kratky
46d04a4e3c
fix COPY_UNITY for LINK_ONLY libraries
10 년 전
Sascha Kratky
38ed31341e
start 1.7.8
10 년 전
Sascha Kratky
75ff9dd2b2
docu updates
10 년 전
Sascha Kratky
275b5ddcdc
only use compiler launchers for Makefile and Ninja
10 년 전
Sascha Kratky
ed521832d2
add support for compiler launchers
10 년 전
Sascha Kratky
b4ccb55b49
Merge branch 'misery-master' into develop
* misery-master:
Add detection of defined <LANG>_COMPILER_LAUNCHER vars
10 년 전
Sascha Kratky
6b1f2c888d
fix bugs related to handling of interface libraries
10 년 전
Sascha Kratky
9a9e39a22f
honor CMake 3.5 target property IOS_INSTALL_COMBINED
10 년 전
Sascha Kratky
7c22a36899
output terser log messages when using Visual Studio IDE
10 년 전
Sascha Kratky
dc1bc8ff17
suppress pointless warning for Ninja
10 년 전
Sascha Kratky
c999d641a7
start 1.7.7
10 년 전
Alexander Haase
925961bb5e
Bugfix in CMake cache docs.
10 년 전
Alexander Haase
88e75c6b03
Enabled debug symbols for ASan.
10 년 전
Alexander Haase
584f137e70
Reworked FindASan.cmake.
* removed build type ASAN. Targets should define ASan usage by sanitize_address
function
* compiler flags will be searched by compiler instead of per language
* FindASan warns, if a target can't be sanitized because of incompatible
compilers
* added some helper functions
10 년 전
Alexander Haase
c96a15b46c
Bugfix in FindASan.cmake
10 년 전
Alexander Haase
d81be39678
Bugfix in FindASan.cmake.
10 년 전
Alexander Haase
f62b5858ac
Compile flags will now be set per-source file.
Thus C can be mixed with Fortran and the objects can be build with different
compilers, not both may support AddressSanitizer.
10 년 전
Alexander Haase
c29aa33f11
Check ASan support for all enabled compilers.
Instead of fix checking for C and CXX compilers, all enabled languages will be
tested now.
10 년 전
André Klitzing
1bb64f774f
Add detection of defined <LANG>_COMPILER_LAUNCHER vars
Since CMake 3.3 it is possible to use <LANG>_COMPILER_LAUNCHER target
property to define ccache. So we need to check those setting, too.
10 년 전
Sascha Kratky
9cfda4cb38
Merge pull request #83 from jcelerier/patch-1
Don't disable PCH if CMAKE_xx_COMPILER_ID is not set
10 년 전
Jean-Michaël Celerier
9b59ef0590
Don't disable PCH if CMAKE_xx_COMPILER_ID is not set
Should fix #82
10 년 전
Sascha Kratky
5767073df6
doc updates
10 년 전
Sascha Kratky
c55aeec380
do not add file-dependency on target's generated files
10 년 전
Sascha Kratky
9d22e96b5c
honor CMake 3.4 target properties
10 년 전
Sascha Kratky
cda1975e88
remove redundant initialization
10 년 전
Sascha Kratky
48ab9a72c1
start 1.7.6
10 년 전
Alexander Haase
e39082050c
Removed continue statement in FindASan.cmake
Older CMake versions are not capable of continue in foreach functions.
10 년 전
Alexander Haase
41e635c9ca
Restructured code of FindASan.cmake
10 년 전
Sascha Kratky
9730d1ddaf
update history
10 년 전
Sascha Kratky
d06a5110fe
doc updates
10 년 전
Sascha Kratky
47964fc7bd
better handling of framework and system framework include directories
10 년 전