From 2535d1a89b5c1ca235706f8e90bf1eab87989166 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Tue, 29 Oct 2019 08:15:48 +0100 Subject: gcc has AddressSanitizer support (allow WITH_ASAN) --- CMakeScripts/DefineDependsandFlags.cmake | 3 --- 1 file changed, 3 deletions(-) (limited to 'CMakeScripts') diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index 802117e12..a8bb63276 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -16,9 +16,6 @@ list(APPEND INKSCAPE_INCS ${PROJECT_SOURCE_DIR} # than compiling with _FORTIFY_SOURCE but has a performance impact (approx. 2x # slower), so it's not suitable for release builds. if(WITH_ASAN) - if(NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) - message(FATAL_ERROR "Compiler must be Clang for WITH_ASAN=ON") - endif() list(APPEND INKSCAPE_CXX_FLAGS "-fsanitize=address -fno-omit-frame-pointer") list(APPEND INKSCAPE_LIBS "-fsanitize=address") else() -- cgit v1.2.3