diff options
| author | Corey Richardson <corey@octayn.net> | 2014-11-03 00:03:21 -0500 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2014-11-04 05:07:47 -0500 |
| commit | 4a6f4c9606efffff9fdcad8dcba021f30f7fa507 (patch) | |
| tree | 9a5fac97a65fededed276e4353503e5cd35fe40d | |
| parent | 0e03503f539b15d116fad5517e52d5cc7013d0c6 (diff) | |
| download | rust-4a6f4c9606efffff9fdcad8dcba021f30f7fa507.tar.gz rust-4a6f4c9606efffff9fdcad8dcba021f30f7fa507.zip | |
Same fix for mac32
| -rw-r--r-- | src/librustc_back/target/i686_apple_darwin.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustc_back/target/i686_apple_darwin.rs b/src/librustc_back/target/i686_apple_darwin.rs index eb1dbd2da63..bd3dd3246aa 100644 --- a/src/librustc_back/target/i686_apple_darwin.rs +++ b/src/librustc_back/target/i686_apple_darwin.rs @@ -11,6 +11,9 @@ use target::Target; pub fn target() -> Target { + let mut base = super::apple_base::opts(); + base.pre_link_args.push("-m32".to_string()); + Target { data_layout: "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16\ -i32:32:32-i64:32:64\ @@ -22,7 +25,6 @@ pub fn target() -> Target { target_word_size: "32".to_string(), arch: "x86".to_string(), target_os: "macos".to_string(), - - options: super::apple_base::opts() + options: base, } } |
