Skip to content

Commit 8b8ed35

Browse files
committed
Document use of _GLIBCXX_USE_CXX11_ABI
1 parent 3dc7ff6 commit 8b8ed35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ set_target_properties(acl_objs PROPERTIES
196196
target_compile_features(acl_objs PRIVATE cxx_std_11)
197197
# These compile_definitions need to be public, since we're building an OBJECT library (?)
198198
target_compile_definitions(acl_objs PUBLIC
199+
# Revert to old pre-C++11 ABI for std::string and std::list in libstdc++.
200+
# This is needed for ABI compatibility with the Intel® FPGA Add-On for
201+
# oneAPI Base Toolkit, particularly the simulation flow, which accesses
202+
# the internal runtime API that exposes C++ structures and functions.
203+
# https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html
199204
_GLIBCXX_USE_CXX11_ABI=0
200205
ACL_SUPPORT_DOUBLE=0
201206
ACL_HAS_STDLIB_STDIO

0 commit comments

Comments
 (0)