Skip to content

Commit 3f3205b

Browse files
authored
Fix for native extension build errors on MacOS (HaxeFoundation#1002)
1 parent 77ea57a commit 3f3205b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/hxcpp/BuildTool.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ class BuildTool
13831383
{
13841384
var cores = ~/Total Number of Cores: (\d+)/;
13851385
var output = ProcessManager.runProcess("", "/usr/sbin/system_profiler", [ "-detailLevel", "full", "SPHardwareDataType" ], true, false, true, true);
1386-
if (cores.match(output))
1386+
if (output != null && cores.match(output))
13871387
{
13881388
result = cores.matched(1);
13891389
}

0 commit comments

Comments
 (0)