]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
build: Link TBB into io_exerciser if present
authorAdam Emerson <aemerson@redhat.com>
Thu, 23 Jan 2025 21:15:52 +0000 (16:15 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 4 Apr 2025 22:42:44 +0000 (18:42 -0400)
commitdc824ec8759969e6f3836e6d22826eafbf99e2b1
tree28b82cdcb604a7591d875185bb38920d9b659842
parent200c0af46539705992211f70f878175f60eb2750
build: Link TBB into io_exerciser if present

libstdc++ uses TBB to implement the execution library if it is
available. If it's not present, we get a serial backend.

Currently, we aren't getting link errors in most cases because the
reference is optimized out, but when compiling with `-O0`, we hit a
missing symbol.

If we use more of the execution library, we'll reference TBB in ways
that don't optimize out.

As such, test if TBB is available. If so, link against it.

See https://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2017
for more information.

Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/common/io_exerciser/CMakeLists.txt