HomePhabricator

[scudo][standalone] Link tests against libatomic

Authored by cryptoad on Jul 3 2019, 9:32 AM.

Description

[scudo][standalone] Link tests against libatomic

Summary:
Some clang versions (< 6.0) do not inline the atomic builtin functions
leaving unresolved references to __atomic_load_8 and so on (seems to
be mostly 64-bit atomics on 32-bit platforms).
I tried without success to use some cmake magic to detect when that
would be the case, and decided to fall back to unconditionally
linking libatomic.

Reviewers: morehouse, eugenis, vitalybuka, hctim, tejohnson

Reviewed By: tejohnson

Subscribers: mgorny, delcypher, jfb, #sanitizers, llvm-commits

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D64134

llvm-svn: 365052

Details

Committed
cryptoadJul 3 2019, 9:32 AM
Reviewer
tejohnson
Differential Revision
D64134: [scudo][standalone] Link tests against libatomic
Parents
rGbddb8c359739: [DAGCombine] More diamong carry pattern optimization.
Branches
Unknown
Tags
Unknown