Respect -mingw flag for cross compiling to windows
This commit is contained in:
@@ -128,7 +128,7 @@ class ProjectXMLParser extends HXProject
|
|||||||
{
|
{
|
||||||
defines.set("native", "1");
|
defines.set("native", "1");
|
||||||
|
|
||||||
if (target == Platform.WINDOWS)
|
if (target == Platform.WINDOWS && targetFlags.exists("mingw"))
|
||||||
{
|
{
|
||||||
defines.set("targetType", "cpp");
|
defines.set("targetType", "cpp");
|
||||||
defines.set("cpp", "1");
|
defines.set("cpp", "1");
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ class WindowsPlatform extends PlatformTarget
|
|||||||
{
|
{
|
||||||
targetType = "winjs";
|
targetType = "winjs";
|
||||||
}
|
}
|
||||||
else if (project.targetFlags.exists("neko") || project.target != cast System.hostPlatform)
|
else if (project.targetFlags.exists("neko"))
|
||||||
{
|
{
|
||||||
targetType = "neko";
|
targetType = "neko";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user