未验证 提交 81be365f 编写于 作者: A Aurelius84 提交者: GitHub

Fix cflags D_GLIBCXX_USE_CXX11_ABI takes no effect problem in customized op (#37878) (#37899)

Fix cflags D_GLIBCXX_USE_CXX11_ABI takes no effect problem in customized op
上级 615b33f3
......@@ -433,7 +433,7 @@ class BuildExtension(build_ext, object):
# so we add this flag to ensure the symbol names from user compiled
# shared library have same ABI suffix with core_(no)avx.so.
# See https://stackoverflow.com/questions/34571583/understanding-gcc-5s-glibcxx-use-cxx11-abi-or-the-new-abi
add_compile_flag(['-D_GLIBCXX_USE_CXX11_ABI=1'], cflags)
add_compile_flag(cflags, ['-D_GLIBCXX_USE_CXX11_ABI=1'])
# Append this macor only when jointly compiling .cc with .cu
if not is_cuda_file(src) and self.contain_cuda_file:
cflags.append('-DPADDLE_WITH_CUDA')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册