From d8ab14f08fcd86e83de83ef0f01e65698b275a9c Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 21 Nov 2018 12:17:24 -0800 Subject: [PATCH] Fix -rebuild flag when using Neko target on windows --- tools/platforms/WindowsPlatform.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/platforms/WindowsPlatform.hx b/tools/platforms/WindowsPlatform.hx index 263082877..418bf1bf1 100644 --- a/tools/platforms/WindowsPlatform.hx +++ b/tools/platforms/WindowsPlatform.hx @@ -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")) {