projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f81dee
)
GPURuntime: ensure compilation with C99
author
Tobias Grosser
<tobias@grosser.es>
Sun, 11 Sep 2016 07:32:50 +0000
(07:32 +0000)
committer
Tobias Grosser
<tobias@grosser.es>
Sun, 11 Sep 2016 07:32:50 +0000
(07:32 +0000)
Otherwise, older compiler will error out on some of the C99 features we use.
llvm-svn: 281159
polly/tools/GPURuntime/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/polly/tools/GPURuntime/CMakeLists.txt
b/polly/tools/GPURuntime/CMakeLists.txt
index
cc91702
..
4e17c27
100644
(file)
--- 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 ")