llvm-ar

René J.V. Bertin rjvbertin at gmail.com
Fri Sep 11 01:39:50 PDT 2015


Hello,

I've run into a buildsystem that can invoke llvm-ar under certain conditions that I'd like to support (link-time optimisation). While that should be no issue on 10.10 and later where I presume llvm-ar is included in the system toolchain, that is not the case on 10.9 and presumably earlier.
The command is hard-coded (though without a path), meaning that it is probably going to conflict with user-specified compilers too. Or with MacPort's own compiler selection feature, meaning the easy way out blacklisting the 10.9 system clang won't work.

Does base know about llvm-ar yet, or is there a tcl code snippet I can use to determine the correct command to reinplace llvm-ar with? I'm guessing there must be a macro or function that returns the appropriate -mp-3.X string as a function of the selected clang version?

Thanks,
René




More information about the macports-dev mailing list