Skip to content

Commit

Permalink
Merge pull request #370 from glandium/clang-cl-aarch64
Browse files Browse the repository at this point in the history
Use --target with non x86/x86_64 clang-cl targets
  • Loading branch information
alexcrichton committed Jan 31, 2019
2 parents 2d8cf02 + 6229121 commit 3863383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1171,11 +1171,11 @@ impl Build {
if clang_cl {
if target.contains("x86_64") {
cmd.args.push("-m64".into());
} else if target.contains("i586") {
} else if target.contains("86") {
cmd.args.push("-m32".into());
cmd.args.push("/arch:IA32".into());
} else {
cmd.args.push("-m32".into());
cmd.args.push(format!("--target={}", target).into());
}
} else {
if target.contains("i586") {
Expand Down

0 comments on commit 3863383

Please sign in to comment.