MacPlatform: report an error if the HashLink binary directory doesn't exist

Better than this: Uncaught exception - std@sys_read_dir
This commit is contained in:
Josh Tynjala
2025-10-06 15:48:19 -07:00
parent c3852d7fcd
commit df4519b313

View File

@@ -653,6 +653,16 @@ class MacPlatform extends PlatformTarget
var limeDirectory = Haxelib.getPath(new Haxelib("lime"), true);
var bindir = "Mac64";
var bundledHLDirectory = Path.combine(limeDirectory, 'templates/bin/hl/$bindir');
if (!FileSystem.exists(bundledHLDirectory))
{
Log.error('Directory does not exist: $bundledHLDirectory');
return;
}
if (!FileSystem.isDirectory(bundledHLDirectory))
{
Log.error('Not a directory: $bundledHLDirectory');
return;
}
// these are the known directories where Homebrew installs its dependencies
// we may need to add more in the future, but this seems to be enough for now