blob: ddcfd7d669df740d9aa07c4045de908bc16899ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
User code should not use the aggressive warning and error flags.
Index: roctracer-rocm-5.0.2/cmake_modules/env.cmake
===================================================================
--- roctracer-rocm-5.0.2.orig/cmake_modules/env.cmake
+++ roctracer-rocm-5.0.2/cmake_modules/env.cmake
@@ -39,10 +39,8 @@ add_definitions ( -D__HIP_PLATFORM_HCC__
## Linux Compiler options
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall" )
-set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror" )
-set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=return-type" )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions" )
+set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive" )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden" )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-math-errno" )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-threadsafe-statics" )
|