Do not compile GPU library with sanitizers
authorTobias Grosser <tobias@grosser.es>
Tue, 28 Jul 2015 12:51:23 +0000 (12:51 +0000)
committerTobias Grosser <tobias@grosser.es>
Tue, 28 Jul 2015 12:51:23 +0000 (12:51 +0000)
llvm-svn: 243411

polly/tools/GPURuntime/CMakeLists.txt

index bbfd1b5..cc91702 100644 (file)
@@ -11,4 +11,7 @@ set_target_properties(GPURuntime
   PREFIX "lib"
   )
 
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=default")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=default ")
+if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-sanitize=all ")
+endif()