archpkgs/python-pytorch-rocm/fix_include_system.patch
Gabriel Ebner d5c96a7fd9 git subrepo clone https://github.com/rocm-arch/python-pytorch-rocm
subrepo:
  subdir:   "python-pytorch-rocm"
  merged:   "bc28dc1"
upstream:
  origin:   "https://github.com/rocm-arch/python-pytorch-rocm"
  branch:   "master"
  commit:   "bc28dc1"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2021-01-14 18:48:07 +01:00

14 lines
651 B
Diff

diff --git a/torch/utils/cpp_extension.py b/torch/utils/cpp_extension.py
index 7692cad5cd..d6e4a82221 100644
--- a/torch/utils/cpp_extension.py
+++ b/torch/utils/cpp_extension.py
@@ -1614,7 +1614,7 @@ def _write_ninja_file_to_build_library(path,
common_cflags.append(f'-DPYBIND11_{pname}=\\"{pval}\\"')
common_cflags += [f'-I{include}' for include in user_includes]
- common_cflags += [f'-isystem {include}' for include in system_includes]
+ common_cflags += [f'-I{include}' for include in system_includes]
common_cflags += ['-D_GLIBCXX_USE_CXX11_ABI=' + str(int(torch._C._GLIBCXX_USE_CXX11_ABI))]
if IS_WINDOWS: