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