upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-pytorch-rocm / trunk / fix_include_system.patch
blob3eb4fff30feee2c052a9cc1c7678f85a01ba6dcc
1 diff --git a/torch/utils/cpp_extension.py b/torch/utils/cpp_extension.py
2 index ca673033e1..c79ce8d37b 100644
3 --- a/torch/utils/cpp_extension.py
4 +++ b/torch/utils/cpp_extension.py
5 @@ -1760,7 +1760,7 @@ def _write_ninja_file_to_build_library(path,
6 common_cflags.append(f'-DPYBIND11_{pname}=\\"{pval}\\"')
8 common_cflags += [f'-I{include}' for include in user_includes]
9 - common_cflags += [f'-isystem {include}' for include in system_includes]
10 + common_cflags += [f'-I{include}' for include in system_includes]
12 common_cflags += ['-D_GLIBCXX_USE_CXX11_ABI=' + str(int(torch._C._GLIBCXX_USE_CXX11_ABI))]