Skip to content

Commit ac7316e

Browse files
authored
SWDEV-442542 - Remove the setting of compile option "-g" from source code. (#79)
CMake will add the compile option -g based on build type. For Release build type, compile option -g will not get added and this will help in removing the hard coded ROCm path in flang2 binary
1 parent e84442d commit ac7316e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fcommon -Wno-implicit-function-declaration
301301

302302
# Add appropriate flags for GCC
303303
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
304-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -g -DOMP_OFFLOAD_LLVM -Wno-implicit-function-declaration -Wno-implicit-int -Wno-enum-constexpr-conversion -Wno-incompatible-function-pointer-types -w")
304+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -DOMP_OFFLOAD_LLVM -Wno-implicit-function-declaration -Wno-implicit-int -Wno-enum-constexpr-conversion -Wno-incompatible-function-pointer-types -w")
305305
option(WITH_WERROR "Compile with '-Werror' C compiler flag" ON)
306306
if (WITH_WERROR)
307307
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")

0 commit comments

Comments
 (0)