[cfe-dev] [compiler-rt] Adding -lm to the clang driver when using compiler-rt

Jordan Rupprecht via cfe-dev cfe-dev at lists.llvm.org
Mon Jul 16 12:17:13 PDT 2018


Hey all,
I have a small change to add -lm when using compiler-rt in
https://reviews.llvm.org/D49330, since it appears that some of the builtins
need it. I got linker errors from __divdc3, __divsc3, and __divxc3, but
there could others.

It seems like a simple change to me and works for the cases I've tried, but
before landing it I thought I'd bring it up here to see if anyone has
concerns about it. Feel free to add yourself as a reviewer if you have any
opinion about this :)

Thanks -- Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180716/c564d8b4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4849 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180716/c564d8b4/attachment.bin>


More information about the cfe-dev mailing list