Skip to content

Commit 02efe98

Browse files
authored
[SYCL] Disable errors from warnings while building the Unified Runtime (#8670)
Currently we disable warnings using specific set of options, some of them are supported by GCC only. Also new warnings may appear in the future and they will cause build failures and require another specific options. So just use more generic -Wno-error option instead to ignore all warnings because unified runtime is external project.
1 parent eb124c4 commit 02efe98

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sycl/plugins/unified_runtime/CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,11 @@ if (NOT DEFINED UNIFIED_RUNTIME_LIBRARY OR NOT DEFINED UNIFIED_RUNTIME_INCLUDE_D
1212
GIT_TAG ${UNIFIED_RUNTIME_TAG}
1313
)
1414

15-
# Disable some compilation options to avoid errors while building the UR.
15+
# Disable errors from warnings while building the UR.
1616
# And remember origin flags before doing that.
1717
set(CMAKE_CXX_FLAGS_BAK "${CMAKE_CXX_FLAGS}")
1818
if (UNIX)
19-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-variable")
20-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic")
21-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-stringop-truncation")
22-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter")
23-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-suggest-override")
19+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error")
2420
endif()
2521

2622
# No need to build tests from unified-runtime

0 commit comments

Comments
 (0)