Skip to content

Commit 4a6f4c9

Browse files
committed
Same fix for mac32
1 parent 0e03503 commit 4a6f4c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_back/target/i686_apple_darwin.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use target::Target;
1212

1313
pub fn target() -> Target {
14+
let mut base = super::apple_base::opts();
15+
base.pre_link_args.push("-m32".to_string());
16+
1417
Target {
1518
data_layout: "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16\
1619
-i32:32:32-i64:32:64\
@@ -22,7 +25,6 @@ pub fn target() -> Target {
2225
target_word_size: "32".to_string(),
2326
arch: "x86".to_string(),
2427
target_os: "macos".to_string(),
25-
26-
options: super::apple_base::opts()
28+
options: base,
2729
}
2830
}

0 commit comments

Comments
 (0)