cereal icon indicating copy to clipboard operation
cereal copied to clipboard

doctest: Do not use unnamed class

Open kraj opened this issue 2 years ago • 1 comments

When compiling with clang this results in emitting absolute path into debug info, especially .debug_str section has

~(unnamed class at /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libcereal/1.3.2+gitAUTOINC+ebef1e9298-r0/git/unittests/doctest.h:6428:5) (unnamed class at /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/libcereal/1.3.2+gitAUTOINC+ebef1e9298-r0/git/unittests/doctest.h:6428:5)

Therefore use a name for the class instead and help get rid of this absolute path in debug info. This fixes

File /usr/lib/libcereal/ptest/tests/.debug/test_unordered_map in package libcereal-dbg contains reference to TMPDIR

Upstream-Status: Pending

kraj avatar Apr 17 '23 23:04 kraj

Looking to merge this and a bunch of other things soon but CI might be broken (unrelated to this PR) and I'll have to address that first.

AzothAmmo avatar Apr 24 '23 02:04 AzothAmmo