From ca0cc8ab94cc34cbc466cd6eb9d60607d6763118 Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Tue, 1 Jun 2021 11:05:07 +0800 Subject: [PATCH] [Cherry-pick][CustomOp]Specify -std=c++14 cflags by default (#33213) (#33227) Cherry-pick (#33213) --- python/paddle/utils/cpp_extension/cpp_extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/utils/cpp_extension/cpp_extension.py b/python/paddle/utils/cpp_extension/cpp_extension.py index 8eefe548b6c..7d6fae3ad77 100644 --- a/python/paddle/utils/cpp_extension/cpp_extension.py +++ b/python/paddle/utils/cpp_extension/cpp_extension.py @@ -434,7 +434,7 @@ class BuildExtension(build_ext, object): add_compile_flag(['-D_GLIBCXX_USE_CXX11_ABI=1'], cflags) add_std_without_repeat( - cflags, self.compiler.compiler_type, use_std14=False) + cflags, self.compiler.compiler_type, use_std14=True) original_compile(obj, src, ext, cc_args, cflags, pp_opts) finally: # restore original_compiler -- GitLab