Patch to fix debugging on Windows x64
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user