From 4a6f4c9606efffff9fdcad8dcba021f30f7fa507 Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Mon, 3 Nov 2014 00:03:21 -0500 Subject: [PATCH] Same fix for mac32 --- src/librustc_back/target/i686_apple_darwin.rs | 6 ++++-- 1 file 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, } }