std::filesystem
segfaults unless linked with -lstdc++fs
, even though that is not necessary in terms of symbols. That's a bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90050), so just fall back to std::experimental::filesystem
. Reported by @jngrad.