swift
871ee794 - Link the concurrency runtime against libatomic on Linux.

Commit
4 years ago
Link the concurrency runtime against libatomic on Linux. We mostly get away without this because we're fairly disciplined about using constant memory orderings, and apparently that's usually good enough to get inline accesses and avoid needing to link atomic. However, we have a few places with the task status atomic that use a non-constant load ordering with load and compare_exchange_weak, and my recent change to make that atomic a double-word was apparently sufficient on some (but not all) Linux distributions to get the compiler to call the runtime function. Regardless, we shouldn't be playing around in the margins here: Linux requires us to link libatomic, so we should.
Author
Parents
Loading