Skip to content

Commit

Permalink
Make sure is64 is true when cross compiling for HL.
Browse files Browse the repository at this point in the history
  • Loading branch information
Apprentice-Alchemist committed Apr 16, 2023
1 parent 08d6340 commit eee2220
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
8 changes: 2 additions & 6 deletions tools/platforms/LinuxPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ class LinuxPlatform extends PlatformTarget
{
targetType = "neko";
}
else if (project.targetFlags.exists("hl"))
{
targetType = "hl";
is64 = true;
}
else if (project.targetFlags.exists("nodejs"))
{
targetType = "nodejs";
Expand All @@ -153,9 +148,10 @@ class LinuxPlatform extends PlatformTarget
{
targetType = "java";
}
else if (project.target != (cast System.hostPlatform))
else if (project.targetFlags.exists("hl") || project.target != (cast System.hostPlatform))
{
targetType = "hl";
is64 = true;
}
else
{
Expand Down
8 changes: 2 additions & 6 deletions tools/platforms/MacPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ class MacPlatform extends PlatformTarget
{
targetType = "neko";
}
else if (project.targetFlags.exists("hl"))
{
targetType = "hl";
is64 = true;
}
else if (project.targetFlags.exists("java"))
{
targetType = "java";
Expand All @@ -151,9 +146,10 @@ class MacPlatform extends PlatformTarget
{
targetType = "cs";
}
else if (project.target != (cast System.hostPlatform))
else if (project.targetFlags.exists("hl") || project.target != (cast System.hostPlatform))
{
targetType = "hl";
is64 = true;
}
else
{
Expand Down
8 changes: 2 additions & 6 deletions tools/platforms/WindowsPlatform.hx
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ class WindowsPlatform extends PlatformTarget
{
targetType = "neko";
}
else if (project.targetFlags.exists("hl"))
{
targetType = "hl";
is64 = !project.flags.exists("32");
}
else if (project.targetFlags.exists("cppia"))
{
targetType = "cppia";
Expand All @@ -168,9 +163,10 @@ class WindowsPlatform extends PlatformTarget
{
targetType = "winrt";
}
else if (project.target != (cast System.hostPlatform))
else if (project.targetFlags.exists("hl") || project.target != (cast System.hostPlatform))
{
targetType = "hl";
is64 = !project.flags.exists("32");
}
else
{
Expand Down

0 comments on commit eee2220

Please sign in to comment.