diff --git a/src/lib.rs b/src/lib.rs index 3488e1f3..7c3653c6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2116,6 +2116,12 @@ impl Build { cmd.args.push("-m32".into()); } else if target.abi == "x32" { cmd.args.push("-mx32".into()); + } else if target.os == "aix" { + if cmd.family == ToolFamily::Gnu { + cmd.args.push("-maix64".into()); + } else { + cmd.args.push("-m64".into()); + } } else if target.arch == "x86_64" || target.arch == "powerpc64" { cmd.args.push("-m64".into()); }