From 7843cfec4e4b9d3b979f699b11f908ff43c3d1c4 Mon Sep 17 00:00:00 2001 From: Marco A L Barbosa Date: Wed, 11 Oct 2017 15:54:47 -0300 Subject: [PATCH] Add -mx32 to x86_64-unknown-linux-gnux32 --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 681d1db..0f07bc1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -982,6 +982,8 @@ impl Build { ToolFamily::Gnu => { if target.contains("i686") || target.contains("i586") { 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") { cmd.args.push("-m64".into()); }