Remove -latomic if unnecessary
Chris Bieneman
beanz at apple.com
Tue Feb 24 15:35:49 PST 2015
LGTM.
-Chris
> On Feb 23, 2015, at 1:48 PM, Matt Glazar <strager at fb.com> wrote:
>
> cc Nakamura and Chandler, as suggested by abdulras at fb.com
>
> -----Original Message-----
> From: Matt Glazer <strager at fb.com>
> Date: Tuesday, February 3, 2015 at 5:34 PM
> To: "llvm-commits at cs.uiuc.edu" <llvm-commits at cs.uiuc.edu>
> Subject: Remove -latomic if unnecessary
>
>> My Linux toolchain supports __atomic_fetch_add_4 without -latomic.
>> Specifying -latomic fails because libatomic.{so,a} does not exist.
>>
>> In CMake, first check if __atomic_fetch_add_4 can be used without
>> -latomic. If it can't, try with -latomic.
>>
>> See attached patch.
>>
>
> <latomic.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list