Fix supplemental build failure of x86 windows builds when target_cpu is supplied
@@ -202,8 +202,14 @@ impl FinalBuildConfiguration {
"Unable to locate LLVM installation. skia-bindings can not be built."
);
}
+ // Setting `target_cpu` to `i686` or `x86`, nightly builds would lead to
+ // > 'C:/Program' is not recognized as an internal or external command
+ // Without it, the executables pop out just fine. See the GH job
+ // `supplemental-builds/windows-x86`.
+ if arch != "i686" {
args.push(("target_cpu", quote(clang::target_arch(arch))));
}
+ }
(arch, "linux", "android", _) | (arch, "linux", "androideabi", _) => {
args.push(("ndk", quote(&android::ndk())));
args.push(("ndk_api", android::API_LEVEL.into()));
