Fix -rebuild flag when using Neko target on windows

This commit is contained in:
Joshua Granick
2018-11-21 12:17:24 -08:00
parent df0f77b91c
commit d8ab14f08f

View File

@@ -467,7 +467,7 @@ class WindowsPlatform extends PlatformTarget {
var commands = [];
if (!targetFlags.exists ("64") && (command == "rebuild" || System.hostArchitecture == X86)) {
if (!targetFlags.exists ("64") && (command == "rebuild" || System.hostArchitecture == X86 || targetType != "cpp")) {
if (targetFlags.exists ("winrt")) {
@@ -485,7 +485,7 @@ class WindowsPlatform extends PlatformTarget {
// as previous Windows builds. For now, force -64 to be done last
// so that it can be debugged in a default "rebuild"
if (!targetFlags.exists ("32") && System.hostArchitecture == X64) {
if (!targetFlags.exists ("32") && System.hostArchitecture == X64 && (command != "rebuild" || targetType == "cpp")) {
if (targetFlags.exists ("winrt")) {