Remove -latomic if unnecessary

Matt Glazar strager at fb.com
Mon Feb 23 13:48:53 PST 2015


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.
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: latomic.patch
Type: application/octet-stream
Size: 741 bytes
Desc: latomic.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150223/a72f2559/attachment.obj>


More information about the llvm-commits mailing list