14 lines
651 B
Diff
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:
|