summarylogtreecommitdiffstats
path: root/010-caffe2-fix-include-system-path.patch
diff options
context:
space:
mode:
Diffstat (limited to '010-caffe2-fix-include-system-path.patch')
-rw-r--r--010-caffe2-fix-include-system-path.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/010-caffe2-fix-include-system-path.patch b/010-caffe2-fix-include-system-path.patch
new file mode 100644
index 000000000000..094e7366ef39
--- /dev/null
+++ b/010-caffe2-fix-include-system-path.patch
@@ -0,0 +1,11 @@
+--- a/torch/utils/cpp_extension.py
++++ b/torch/utils/cpp_extension.py
+@@ -1574,7 +1574,7 @@ def _write_ninja_file_to_build_library(p
+ common_cflags = ['-DTORCH_EXTENSION_NAME={}'.format(name)]
+ common_cflags.append('-DTORCH_API_INCLUDE_EXTENSION_H')
+ common_cflags += ['-I{}'.format(include) for include in user_includes]
+- common_cflags += ['-isystem {}'.format(include) for include in system_includes]
++ common_cflags += ['-I{}'.format(include) for include in system_includes]
+
+ common_cflags += ['-D_GLIBCXX_USE_CXX11_ABI=' + str(int(torch._C._GLIBCXX_USE_CXX11_ABI))]
+