[cfe-users] Command to check the 'linker' used(by clang++) for executable creation on Mac OS

Vinay Kumar via cfe-users cfe-users at lists.llvm.org
Tue May 8 05:41:35 PDT 2018

Hi All,
I have an executable created using 'clang++' compiler(using mac os 10.9 sdk) on mac os.
$ clang++ -vApple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)Target: x86_64-apple-darwin13.4.0Thread model: posix
$ ld -v@(#)PROGRAM:ld  PROJECT:ld64-241.9configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7m armv7emLTO support using: LLVM version 3.5svn
$ sw_versProductName: Mac OS XProductVersion: 10.9.5BuildVersion: 13F1911
My query is how to confirm(command to check) if my executable is created using ld.lld linker or ld.gold/some other linker? What is the default linker 'clang++' uses(command to cross-check) on mac os?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20180508/346a817e/attachment.html>

More information about the cfe-users mailing list