[polly] r281159 - GPURuntime: ensure compilation with C99
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 11 00:32:50 PDT 2016
Author: grosser
Date: Sun Sep 11 02:32:50 2016
New Revision: 281159
URL: http://llvm.org/viewvc/llvm-project?rev=281159&view=rev
Log:
GPURuntime: ensure compilation with C99
Otherwise, older compiler will error out on some of the C99 features we use.
Modified:
polly/trunk/tools/GPURuntime/CMakeLists.txt
Modified: polly/trunk/tools/GPURuntime/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/tools/GPURuntime/CMakeLists.txt?rev=281159&r1=281158&r2=281159&view=diff
==============================================================================
--- polly/trunk/tools/GPURuntime/CMakeLists.txt (original)
+++ polly/trunk/tools/GPURuntime/CMakeLists.txt Sun Sep 11 02:32:50 2016
@@ -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 ")
More information about the llvm-commits
mailing list