Respect -cpp flag for windows cross compile
This commit is contained in:
committed by
Josh Tynjala
parent
988a0e836f
commit
d2129bbd64
@@ -765,7 +765,7 @@ class HXProject extends Script
|
|||||||
defines.set("targetType", "cpp");
|
defines.set("targetType", "cpp");
|
||||||
defines.set("cpp", "1");
|
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("targetType", "cpp");
|
||||||
defines.set("cpp", "1");
|
defines.set("cpp", "1");
|
||||||
|
|||||||
@@ -580,7 +580,7 @@ class WindowsPlatform extends PlatformTarget
|
|||||||
|
|
||||||
System.copyFile(targetDirectory + "/obj/ApplicationMain" + (project.debug ? "-debug" : "") + ".exe", executablePath);
|
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"];
|
var libraries = ["libwinpthread-1.dll", "libstdc++-6.dll"];
|
||||||
if (is64)
|
if (is64)
|
||||||
|
|||||||
Reference in New Issue
Block a user