Alexander Haase
4f5410511a
Updated README file.
před 10 roky
Alexander Haase
5bfe8a8e51
Support multiple targets in add_sanitizers.
před 10 roky
Sascha Kratky
ef64a48f19
start 1.7.9
před 10 roky
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.
před 10 roky
Alexander Haase
8d8c0f7a4e
Bugfixes.
před 10 roky
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!
před 10 roky
Alexander Haase
a6b6ae43db
Merge branch 'remove_optimization' into one_module
před 10 roky
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.
před 10 roky
Alexander Haase
1a68d6aefe
Little bugfixes.
před 10 roky
Alexander Haase
1cefaef507
Added function to set sanitizer blacklist.
před 10 roky
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.
před 10 roky
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.
před 10 roky
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.
před 10 roky
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.
před 10 roky
Alexander Haase
03db9d9383
Restructured all sanitizer modules.
před 10 roky
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.
před 10 roky
Alexander Haase
8f2015a4d3
Changed copyright notice.
před 10 roky
Sascha Kratky
40a46bf2fb
update history
před 10 roky
Sascha Kratky
ca8b620ff6
set up LINK_LIBRARIES and INTERFACE_LINK_LIBRARIES correctly for unity target
před 10 roky
Sascha Kratky
48a1ca2591
handle CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE
před 10 roky
Sascha Kratky
46d04a4e3c
fix COPY_UNITY for LINK_ONLY libraries
před 10 roky
Sascha Kratky
38ed31341e
start 1.7.8
před 10 roky
Sascha Kratky
75ff9dd2b2
docu updates
před 10 roky
Sascha Kratky
275b5ddcdc
only use compiler launchers for Makefile and Ninja
před 10 roky
Sascha Kratky
ed521832d2
add support for compiler launchers
před 10 roky
Sascha Kratky
b4ccb55b49
Merge branch 'misery-master' into develop
* misery-master:
Add detection of defined <LANG>_COMPILER_LAUNCHER vars
před 10 roky
Sascha Kratky
6b1f2c888d
fix bugs related to handling of interface libraries
před 10 roky
Sascha Kratky
9a9e39a22f
honor CMake 3.5 target property IOS_INSTALL_COMBINED
před 10 roky
Sascha Kratky
7c22a36899
output terser log messages when using Visual Studio IDE
před 10 roky
Sascha Kratky
dc1bc8ff17
suppress pointless warning for Ninja
před 10 roky
Sascha Kratky
c999d641a7
start 1.7.7
před 10 roky
Alexander Haase
925961bb5e
Bugfix in CMake cache docs.
před 10 roky
Alexander Haase
88e75c6b03
Enabled debug symbols for ASan.
před 10 roky
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
před 10 roky
Alexander Haase
c96a15b46c
Bugfix in FindASan.cmake
před 10 roky
Alexander Haase
d81be39678
Bugfix in FindASan.cmake.
před 10 roky
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.
před 10 roky
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.
před 10 roky
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.
před 10 roky
Sascha Kratky
9cfda4cb38
Merge pull request #83 from jcelerier/patch-1
Don't disable PCH if CMAKE_xx_COMPILER_ID is not set
před 10 roky
Jean-Michaël Celerier
9b59ef0590
Don't disable PCH if CMAKE_xx_COMPILER_ID is not set
Should fix #82
před 10 roky
Sascha Kratky
5767073df6
doc updates
před 10 roky
Sascha Kratky
c55aeec380
do not add file-dependency on target's generated files
před 10 roky
Sascha Kratky
9d22e96b5c
honor CMake 3.4 target properties
před 10 roky
Sascha Kratky
cda1975e88
remove redundant initialization
před 10 roky
Sascha Kratky
48ab9a72c1
start 1.7.6
před 10 roky
Alexander Haase
e39082050c
Removed continue statement in FindASan.cmake
Older CMake versions are not capable of continue in foreach functions.
před 10 roky
Alexander Haase
41e635c9ca
Restructured code of FindASan.cmake
před 10 roky
Sascha Kratky
9730d1ddaf
update history
před 10 roky
Sascha Kratky
d06a5110fe
doc updates
před 10 roky