Browse Source

Use --target with non x86/x86_64 clang-cl targets

wasi
Mike Hommey 6 years ago
parent
commit
6229121084
  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