2012-06-11 17:25:01 +08:00
|
|
|
set(MODULE TRUE)
|
|
|
|
set(LLVM_NO_RTTI 1)
|
|
|
|
|
|
|
|
add_polly_library(GPURuntime
|
|
|
|
GPUJIT.c
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(GPURuntime
|
|
|
|
PROPERTIES
|
|
|
|
LINKER_LANGUAGE C
|
|
|
|
PREFIX "lib"
|
|
|
|
)
|
2015-03-11 04:23:14 +08:00
|
|
|
|
2016-09-11 15:32:50 +08:00
|
|
|
set_property(TARGET GPURuntime PROPERTY C_STANDARD 99)
|
|
|
|
|
2015-07-28 20:51:23 +08:00
|
|
|
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()
|