You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+++ b/CMakeLists.txt@@ -33,7 +33,7 @@
cmake_minimum_required(VERSION 2.8)
# project name
-project("CMake-sanitizers")+project("CMake-sanitizers" C CXX ASM)
then
mkdir build &&cd build && cmake ..
cmake -DSANITIZE_ADDRESS:BOOL=ON ..
-- Try GNU AddressSanitizer flag = [-g -fsanitize=address -fno-omit-frame-pointer]
-- Try GNU AddressSanitizer flag = [-g -fsanitize=address]
-- Try GNU AddressSanitizer flag = [-g -faddress-sanitizer]
CMake Warning at cmake/sanitize-helpers.cmake:143 (message):
AddressSanitizer is not available for GNU compiler. Targets using this
compiler will be compiled without AddressSanitizer.
Call Stack (most recent call first):
cmake/FindASan.cmake:46 (sanitizer_check_compiler_flags)
cmake/FindSanitizers.cmake:37 (find_package)
CMakeLists.txt:50 (find_package)
Although without the ASM works as it should.
The text was updated successfully, but these errors were encountered:
Oh, I don‘t think that was the intention of my implementation. ;)
I guess Sanitizers aren‘t available for assembler, the result is cached for gcc, so the module prints a warning about gcc doesn‘t support sanitizers et all.
Hello all,
in case you set
then
Although without the
ASM
works as it should.The text was updated successfully, but these errors were encountered: