We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d8cf02 commit 6229121Copy full SHA for 6229121
1 file changed
src/lib.rs
@@ -1171,11 +1171,11 @@ impl Build {
1171
if clang_cl {
1172
if target.contains("x86_64") {
1173
cmd.args.push("-m64".into());
1174
- } else if target.contains("i586") {
+ } else if target.contains("86") {
1175
cmd.args.push("-m32".into());
1176
cmd.args.push("/arch:IA32".into());
1177
} else {
1178
- cmd.args.push("-m32".into());
+ cmd.args.push(format!("--target={}", target).into());
1179
}
1180
1181
if target.contains("i586") {
0 commit comments