Skip to content

Commit

Permalink
CommandLineTools: set macos define when using cpp target on macOS (cl…
Browse files Browse the repository at this point in the history
…oses #1878)

It should behave the same as mac or macos target.
  • Loading branch information
joshtynjala committed Jan 6, 2025
1 parent 37e7580 commit 57cf88b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/CommandLineTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,11 @@ class CommandLineTools
target = System.hostPlatform;
targetFlags.set("cpp", "");

if (target == Platform.MAC)
{
overrides.haxedefs.set("macos", "");
}

case "neko":
target = System.hostPlatform;
targetFlags.set("neko", "");
Expand Down

0 comments on commit 57cf88b

Please sign in to comment.