Skip to content

Commit

Permalink
Respect -cpp flag for windows cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk authored and joshtynjala committed Dec 18, 2024
1 parent 988a0e8 commit d2129bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lime/tools/HXProject.hx
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ class HXProject extends Script
defines.set("targetType", "cpp");
defines.set("cpp", "1");
}
else if (target == Platform.WINDOWS && targetFlags.exists("mingw"))
else if (target == Platform.WINDOWS && (targetFlags.exists("cpp") || targetFlags.exists("mingw")))
{
defines.set("targetType", "cpp");
defines.set("cpp", "1");
Expand Down
2 changes: 1 addition & 1 deletion tools/platforms/WindowsPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ class WindowsPlatform extends PlatformTarget

System.copyFile(targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-debug" : "") + ".exe", executablePath);

if (project.targetFlags.exists("mingw"))
if (project.defines.exists("mingw"))
{
var libraries = ["libwinpthread-1.dll", "libstdc++-6.dll"];
if (is64)
Expand Down

0 comments on commit d2129bb

Please sign in to comment.