From 9185b6a37be50b103751c25ee108935c65e00400 Mon Sep 17 00:00:00 2001 From: Henry Jiang Date: Thu, 12 Dec 2024 08:46:08 -0500 Subject: [PATCH] use -maix64 instead of -m64 (#1307) --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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()); }