Skip to content

Commit 244bb14

Browse files
committed
Same fix for dragonfly
1 parent 4a6f4c9 commit 244bb14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustc_back/target/i686_unknown_dragonfly.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111
use target::Target;
1212

1313
pub fn target() -> Target {
14+
let mut base = super::draginfly_base::opts();
15+
base.pre_link_args.push("-m32".to_string());
16+
1417
Target {
1518
data_layout: "e-p:32:32-f64:32:64-i64:32:64-f80:32:32-n8:16:32".to_string(),
1619
llvm_target: "i686-unknown-dragonfly".to_string(),
1720
target_endian: "little".to_string(),
1821
target_word_size: "32".to_string(),
1922
arch: "x86".to_string(),
2023
target_os: "dragonfly".to_string(),
21-
options: super::dragonfly_base::opts()
24+
options: base,
2225
}
2326
}

0 commit comments

Comments
 (0)