1
Fork 0

rustc: Pass --enable-long-section-names to gcc

This was quite a curious bug on windows, and the details can be found in the
comment I added to src/librustc/back/link.rs
This commit is contained in:
Alex Crichton 2014-04-02 18:27:12 -07:00
parent 0459ee77d0
commit 38f7a1b41b
4 changed files with 38 additions and 1 deletions

View file

@ -75,6 +75,8 @@
#![allow(missing_doc)]
#![allow(uppercase_variables)]
#![feature(link_args)] // NOTE: remove after stage0
#[cfg(test)] extern crate std;
#[cfg(test)] extern crate test;
#[cfg(test)] extern crate native;
@ -197,6 +199,11 @@ pub use funcs::posix88::unistd::{rmdir, unlink, write};
#[link(name = "m")]
extern {}
// NOTE: remove this after a stage0 snap
#[cfg(stage0, windows)]
#[link_args = "-Wl,--enable-long-section-names"]
extern {}
/// A wrapper for a nullable pointer. Don't use this except for interacting
/// with libc. Basically Option, but without the dependance on libstd.
// If/when libprim happens, this can be removed in favor of that