From e587853f08782e298259c270fcdd73420f422d49 Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Mon, 31 May 2021 15:41:18 +0800 Subject: [PATCH] [CustomOp]Specify -std=c++14 cflags by default (#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 e8a4253ad3e..dcaa1ca15e5 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