Browse Source

Merge pull request #370 from glandium/clang-cl-aarch64

Use --target with non x86/x86_64 clang-cl targets
wasi
Alex Crichton 6 years ago
committed by GitHub
parent
commit
38633832b1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/lib.rs

4
src/lib.rs

@ -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") {

Loading…
Cancel
Save