Skip to content

Commit 3863383

Browse files
authored
Merge pull request #370 from glandium/clang-cl-aarch64
Use --target with non x86/x86_64 clang-cl targets
2 parents 2d8cf02 + 6229121 commit 3863383

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,11 +1171,11 @@ impl Build {
11711171
if clang_cl {
11721172
if target.contains("x86_64") {
11731173
cmd.args.push("-m64".into());
1174-
} else if target.contains("i586") {
1174+
} else if target.contains("86") {
11751175
cmd.args.push("-m32".into());
11761176
cmd.args.push("/arch:IA32".into());
11771177
} else {
1178-
cmd.args.push("-m32".into());
1178+
cmd.args.push(format!("--target={}", target).into());
11791179
}
11801180
} else {
11811181
if target.contains("i586") {

0 commit comments

Comments
 (0)