File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1027,6 +1027,8 @@ if(NOT MSVC)
1027
1027
append_cxx_flag_if_supported ("-Wno-strict-overflow" CMAKE_CXX_FLAGS )
1028
1028
append_cxx_flag_if_supported ("-Wno-strict-aliasing" CMAKE_CXX_FLAGS )
1029
1029
append_cxx_flag_if_supported ("-Wno-stringop-overflow" CMAKE_CXX_FLAGS )
1030
+ append_cxx_flag_if_supported ("-Wno-deprecated-enum-enum-conversion" CMAKE_CXX_FLAGS )
1031
+ append_cxx_flag_if_supported ("-Wno-error=deprecated-enum-enum-conversion" CMAKE_CXX_FLAGS )
1030
1032
append_cxx_flag_if_supported ("-Wvla-extension" CMAKE_CXX_FLAGS )
1031
1033
append_cxx_flag_if_supported ("-Wsuggest-override" CMAKE_CXX_FLAGS )
1032
1034
append_cxx_flag_if_supported ("-Wnewline-eof" CMAKE_CXX_FLAGS )
Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ endmacro()
337
337
# Usage:
338
338
# torch_compile_options(lib_name)
339
339
function (torch_compile_options libname )
340
- set_property (TARGET ${libname} PROPERTY CXX_STANDARD 17 )
340
+ set_property (TARGET ${libname} PROPERTY CXX_STANDARD 20 )
341
341
342
342
# until they can be unified, keep these lists synced with setup.py
343
343
if (MSVC )
@@ -384,9 +384,12 @@ function(torch_compile_options libname)
384
384
)
385
385
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
386
386
list (APPEND private_compile_options -Wredundant-move )
387
+ list (APPEND private_compile_options -Wno-error=deprecated-declarations -Wno-error=redundant-move )
387
388
endif ()
388
389
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
389
390
list (APPEND private_compile_options -Wextra-semi -Wmove )
391
+ list (APPEND private_compile_options -Wno-return-std-move )
392
+ list (APPEND private_compile_options -Wno-deprecated-enum-enum-conversion -Wno-ambiguous-reversed-operator )
390
393
else ()
391
394
list (APPEND private_compile_options
392
395
# Considered to be flaky. See the discussion at
You can’t perform that action at this time.
0 commit comments