Browse Source

Add -mx32 to x86_64-unknown-linux-gnux32

cl-test
Marco A L Barbosa 7 years ago
parent
commit
7843cfec4e
  1. 2
      src/lib.rs

2
src/lib.rs

@ -982,6 +982,8 @@ impl Build {
ToolFamily::Gnu => { ToolFamily::Gnu => {
if target.contains("i686") || target.contains("i586") { if target.contains("i686") || target.contains("i586") {
cmd.args.push("-m32".into()); cmd.args.push("-m32".into());
} else if target == "x86_64-unknown-linux-gnux32" {
cmd.args.push("-mx32".into());
} else if target.contains("x86_64") || target.contains("powerpc64") { } else if target.contains("x86_64") || target.contains("powerpc64") {
cmd.args.push("-m64".into()); cmd.args.push("-m64".into());
} }

Loading…
Cancel
Save