summarylogtreecommitdiffstats
path: root/010-caffe2-fix-include-system-path.patch
blob: c885e15dd8cd8feee8f436e9bf61a0d595c5da51 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/torch/utils/cpp_extension.py
+++ b/torch/utils/cpp_extension.py
@@ -1759,7 +1759,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))]