[cfe-dev] Using Clang -O4 with CMake
Chris Lattner
clattner at apple.com
Sat Jun 19 10:31:45 PDT 2010
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
More information about the cfe-dev
mailing list