commit | 37020689afef97d10455acfe0b3109a92d027252 | [log] [tgz] |
---|---|---|
author | Alex Stewart <alexs.mac@gmail.com> | Sun May 12 20:06:04 2013 +0100 |
committer | Alex Stewart <alexs.mac@gmail.com> | Mon May 13 17:38:55 2013 +0100 |
tree | b55683ec787ba1a68a19fef4b17b6959553796cb | |
parent | a6b76c7ff67d84ae89271f8164a55ac5b4db3e7a [diff] |
Enabling -O4 (link-time optimization) only if compiler/linker support it. - The -O4 option requires the linker to have bitcode support, currently for clang this means using the gold linker and the LLVM-gold plugin: http://llvm.org/docs/GoldPlugin.html. - Otherwise you get (confusing) 'file format not recognised' errors ala: http://llvm.org/bugs/show_bug.cgi?id=9897. - Adding explicit check for LTO support as at least some package installs of clang on linux do not use the gold linker by default. Change-Id: I2a4c670e470d9b48da2a15b7e91a59fb4ad3e8ad