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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
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") { |
|
|
|