diff options
author | Daniel Bermond | 2021-03-06 16:59:21 +0000 |
---|---|---|
committer | Daniel Bermond | 2021-03-06 16:59:21 +0000 |
commit | d46f4e0a2278c4301f461bdfe50c5f6a0b786e44 (patch) | |
tree | 60ff3852d833feaa910a825e7950f121b6928281 /010-caffe2-fix-include-system-path.patch | |
parent | 52c839862b39c0907927ed425018e9172f3b1ab2 (diff) | |
download | aur-d46f4e0a2278c4301f461bdfe50c5f6a0b786e44.tar.gz |
Match latest upstream changes
Diffstat (limited to '010-caffe2-fix-include-system-path.patch')
-rw-r--r-- | 010-caffe2-fix-include-system-path.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/010-caffe2-fix-include-system-path.patch b/010-caffe2-fix-include-system-path.patch index 094e7366ef39..5c72921f0dfc 100644 --- a/010-caffe2-fix-include-system-path.patch +++ b/010-caffe2-fix-include-system-path.patch @@ -1,11 +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] +@@ -1760,7 +1760,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))] |