Patch to fix debugging on Windows x64

This commit is contained in:
Joshua Granick
2018-09-12 11:22:20 -07:00
parent ed773ae74e
commit 6ea961ed05

View File

@@ -406,20 +406,6 @@ class WindowsPlatform extends PlatformTarget {
var commands = [];
if (!targetFlags.exists ("32") && System.hostArchitecture == X64) {
if (targetFlags.exists ("winrt")) {
commands.push ([ "-Dwinrt", "-DHXCPP_M64" ]);
} else {
commands.push ([ "-Dwindows", "-DHXCPP_M64" ]);
}
}
if (!targetFlags.exists ("64") && (command == "rebuild" || System.hostArchitecture == X86)) {
if (targetFlags.exists ("winrt")) {
@@ -434,6 +420,24 @@ class WindowsPlatform extends PlatformTarget {
}
// TODO: Compiling with -Dfulldebug overwrites the same "-debug.pdb"
// 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 ("winrt")) {
commands.push ([ "-Dwinrt", "-DHXCPP_M64" ]);
} else {
commands.push ([ "-Dwindows", "-DHXCPP_M64" ]);
}
}
CPPHelper.rebuild (project, commands);
}