Skip to content

Commit

Permalink
use -maix64 instead of -m64 (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustartt authored Dec 12, 2024
1 parent 1d96c83 commit 9185b6a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 9185b6a

Please sign in to comment.