Skip to content

Commit 5ba7e8e

Browse files
committed
Respect -mingw flag for cross compiling to windows
1 parent df76cb1 commit 5ba7e8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lime/tools/ProjectXMLParser.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class ProjectXMLParser extends HXProject
128128
{
129129
defines.set("native", "1");
130130

131-
if (target == Platform.WINDOWS)
131+
if (target == Platform.WINDOWS && targetFlags.exists("mingw"))
132132
{
133133
defines.set("targetType", "cpp");
134134
defines.set("cpp", "1");

tools/platforms/WindowsPlatform.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class WindowsPlatform extends PlatformTarget
138138
{
139139
targetType = "winjs";
140140
}
141-
else if (project.targetFlags.exists("neko") || project.target != cast System.hostPlatform)
141+
else if (project.targetFlags.exists("neko"))
142142
{
143143
targetType = "neko";
144144
}

0 commit comments

Comments
 (0)