File tree Expand file tree Collapse file tree 4 files changed +3
-3
lines changed
rocrtst/suites/test_common Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ cmake_minimum_required(VERSION 3.7)
4747project ("rocr" )
4848
4949set (CMAKE_VERBOSE_MAKEFILE ON )
50-
5150## Expose static library option
5251if ( NOT DEFINED BUILD_SHARED_LIBS )
5352 set ( BUILD_SHARED_LIBS ON )
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ add_definitions(-DLITTLEENDIAN_CPU=1)
248248#
249249# Linux Compiler options
250250#
251- set (CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -std=c++11 " )
251+ set (CMAKE_CXX_STANDARD 17 )
252252set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions" )
253253set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti" )
254254set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-math-errno" )
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ cmake_minimum_required ( VERSION 3.7 )
4848unset ( hsa-runtime64_LIB_DEPENDS CACHE )
4949
5050set (CMAKE_VERBOSE_MAKEFILE ON )
51+ set (CMAKE_CXX_STANDARD 17)
5152
5253## Set core runtime module name and project name.
5354set ( CORE_RUNTIME_NAME "hsa-runtime64" )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
5151 set (ONLY64STR "64" )
5252endif ()
5353
54- set (HSA_COMMON_CXX_FLAGS "-Wall" "-std=c++11" )
54+ set (HSA_COMMON_CXX_FLAGS "-Wall" )
5555set (HSA_COMMON_CXX_FLAGS ${HSA_COMMON_CXX_FLAGS} "-fPIC" )
5656if (CMAKE_COMPILER_IS_GNUCXX)
5757 set (HSA_COMMON_CXX_FLAGS ${HSA_COMMON_CXX_FLAGS} "-Wl,--unresolved-symbols=ignore-in-shared-libs" )
You can’t perform that action at this time.
0 commit comments