[cfe-dev] Using Clang -O4 with CMake

Clark Gaebel cg.wowus.cg at gmail.com
Sat Jun 19 11:23:16 PDT 2010


Is there any way to do this without using gold? I'd rather not enable an
experimental linker.

On 06/19/10 13:31, Chris Lattner wrote:
> On Jun 19, 2010, at 1:46 AM, Toralf Niebuhr wrote:
>
>   
>> Am 19.06.2010 um 06:15 schrieb Chris Lattner:
>>
>>     
>>> On Jun 18, 2010, at 8:47 PM, Clark Gaebel wrote:
>>>
>>>       
>>>> I'm running...
>>>>
>>>> clark at clark-laptop ~/dev/cpp/GoGo/build $ clang++ --version
>>>> clang version 1.5 (trunk 101682)
>>>> Target: x86_64-unknown-linux-gnu
>>>> Thread model: posix
>>>>         
>>> For LTO to work on linux, you need to use the gold linker and set up the gold lto plugin.  Please see:
>>> http://llvm.org/docs/GoldPlugin.html
>>>       
>> Is there such a plugin for Mac OS X too?
>>     
> Yep, it ships standard on the platform as part of xcode 3.1 and later (I think):
> http://llvm.org/docs/LinkTimeOptimization.html
>
> -Chris
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>   

-- 
Regards,
-Clark




More information about the cfe-dev mailing list