premake / premake-core

Premake
https://premake.github.io/
BSD 3-Clause "New" or "Revised" License
3.24k stars 619 forks source link

5.0.0-beta3 fails to build on BSD #2337

Closed seragh closed 3 days ago

seragh commented 4 days ago

What seems to be the problem?

On FreeBSD:

src/host/os_getnumcpus.c:58:11: error: use of undeclared identifier 'HW_AVAILCPU'
   58 |         mib[1] = HW_AVAILCPU;  // alternatively, try HW_NCPU;

What did you expect to happen? it builds

What have you tried so far?

How can we reproduce this? bootstrap premake on Freebsd

What version of Premake are you using? 5.0.0-beta3

Anything else we should know? https://bugs.webkit.org/show_bug.cgi?id=132542

tritao commented 4 days ago

Fixed by https://github.com/premake/premake-core/commit/ffcb7790f013bdceacc14ba5fda1c5cd107aac08.