GPURuntime: ensure compilation with C99

Otherwise, older compiler will error out on some of the C99 features we use.

llvm-svn: 281159
This commit is contained in:
Tobias Grosser 2016-09-11 07:32:50 +00:00
parent 1f81deee1f
commit 89fda2bde2

View File

@ -11,6 +11,8 @@ set_target_properties(GPURuntime
PREFIX "lib"
)
set_property(TARGET GPURuntime PROPERTY C_STANDARD 99)
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 ")