[libcxx-commits] [PATCH] D88818: [libc++][FreeBSD] XFAIL tests that need __atomic_* libcalls on older versions

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 10 04:36:37 PST 2020


ldionne added inline comments.


================
Comment at: libcxx/utils/libcxx/test/features.py:122
+
+def _freebsdHasAtomicLibcalls(cfg):
+  freebsdVersion = int(compilerMacros(cfg, '-include sys/param.h').get('__FreeBSD_version', "0"))
----------------
This check shouldn't be FreeBSD specific. Instead, we should see whether we can reference these atomic operations generically, by checking the linker output of an appropriate program.

Also, can you explain why the `non-lockfree-atomics` feature doesn't do what you want?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88818/new/

https://reviews.llvm.org/D88818



More information about the libcxx-commits mailing list