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
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 роки тому
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 роки тому
Alexander Haase
4fd453301a
Moved CMake files and added a simple testcase
10 роки тому