Skip to content

Commit 0605379

Browse files
committed
Use default new C++11 ABI for std::string and std::list in libstdc++
This flag was once used as a work-around for very old linkers and has not been needed for a long time. The ABI change does not affect the public runtime ABI since the runtime does not expose any C++ symbols. The ABI change does affect the size of OpenCL data structures, however these are not exposed directly but only in the form of opaque pointers. https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html
1 parent 3c2bfae commit 0605379

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ 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-
_GLIBCXX_USE_CXX11_ABI=0
200199
ACL_SUPPORT_DOUBLE=0
201200
ACL_HAS_STDLIB_STDIO
202201
CL_USE_DEPRECATED_OPENCL_1_0_APIS=1

test/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ add_executable(acl_test
3131
set_target_properties(acl_test PROPERTIES CXX_EXTENSIONS OFF)
3232
target_compile_features(acl_test PRIVATE cxx_std_11)
3333
target_compile_definitions(acl_test PRIVATE
34-
_GLIBCXX_USE_CXX11_ABI=0
3534
"ACL_TARGET_BIT=${ACL_TARGET_BIT}"
3635
CL_USE_DEPRECATED_OPENCL_1_0_APIS=1
3736
CL_USE_DEPRECATED_OPENCL_1_1_APIS=1

0 commit comments

Comments
 (0)