Skip to content

Commit

Permalink
Eliminate Werror flag to prevent building failures on Linux (#1085)
Browse files Browse the repository at this point in the history
Warnings are generated within the SYCL library when using the OneAPI
compiler, so `-Wno-error` is used to prevent failures when the `WERROR`
flag is enabled.
  • Loading branch information
xytintel authored Nov 14, 2024
1 parent e035f6b commit b75da0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set(PROJECT_NAME "torch-xpu-ops")
set(PROJECT_VERSION "2.3.0")
# Avoid SYCL compiler error
if(NOT WIN32)
string(APPEND CMAKE_CXX_FLAGS " -Wno-error=comment")
string(APPEND CMAKE_CXX_FLAGS " -Wno-error")
endif()

cmake_policy(SET CMP0048 NEW)
Expand Down

0 comments on commit b75da0c

Please sign in to comment.