[llvm-dev] How to generate .bc file using configure && make on Mac OS X?

Alex Denisov via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 28 02:52:11 PST 2019


Hi Peng,

On macOS you just omit the '-fuse-ld=gold' and it will work out of the box.

Cheers,
Alex.

> On 25. Jan 2019, at 14:05, Peng Yu via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hi,
> 
> I use the following commands to compile a GNU package to .bc files on Linux.
> 
> ./configure CC=clang RANLIB=llvm-ranlib CFLAGS=-flto
> LDFLAGS=-Wl\,-plugin-opt=save-temps\ -flto\ -fuse-ld=gold
> make
> 
> But since it uses ld.gold, it won't work on Mac OS X. Is there
> something equivalent that works on Mac OS X? Thanks.
> 
> --
> Regards,
> Peng
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

--
AlexDenisov
Software Engineer, https://lowlevelbits.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190128/7bb85bd5/attachment.sig>


More information about the llvm-dev mailing list