From 89fda2bde2cf01498fb333baef6613bae02c27a7 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sun, 11 Sep 2016 07:32:50 +0000 Subject: [PATCH] GPURuntime: ensure compilation with C99 Otherwise, older compiler will error out on some of the C99 features we use. llvm-svn: 281159 --- polly/tools/GPURuntime/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/polly/tools/GPURuntime/CMakeLists.txt b/polly/tools/GPURuntime/CMakeLists.txt index cc917020a190..4e17c276a11b 100644 --- a/polly/tools/GPURuntime/CMakeLists.txt +++ b/polly/tools/GPURuntime/CMakeLists.txt @@ -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 ")