]> git.lizzy.rs Git - rust.git/commit
As of 4.9.2, gcc started passing -fno-lto to collect2, or to ld if collect2 cannot...
authorVadim Chugunov <vadimcn@gmail.com>
Sun, 9 Nov 2014 02:32:15 +0000 (18:32 -0800)
committerVadim Chugunov <vadimcn@gmail.com>
Sun, 9 Nov 2014 02:33:40 +0000 (18:33 -0800)
commit3d9a346aa3ed6fc30e34bd7124e20e77c66cbcb0
tree36a0fb2b2a7ce875039fb18ff3200665d07ac4e8
parent6ee56c9a5febad45865b7d41422b7ae4d996fcaa
As of 4.9.2, gcc started passing -fno-lto to collect2, or to ld if collect2 cannot be found.  The latter is the case for our bundles, because we don't include collect2.  Unfortunately, ld does not understand this option and errors out.
On the bright side, -fno-use-linker-plugin still works to suppress gcc's LTO, so we can drop -fno-lto.
src/librustc/back/link.rs