Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/_premake_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,7 @@
"bsd",
"emscripten",
"haiku",
"hurd",
"ios",
"linux",
"macosx",
Expand Down
2 changes: 1 addition & 1 deletion src/host/os_getnumcpus.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int do_getnumcpus()
{
return 0;
}
#elif PLATFORM_SOLARIS | PLATFORM_AIX | PLATFORM_MACOSX | PLATFORM_BSD
#elif PLATFORM_SOLARIS | PLATFORM_AIX | PLATFORM_MACOSX | PLATFORM_BSD | PLATFORM_HURD
return sysconf(_SC_NPROCESSORS_ONLN);
#else
#warning do_getnumcpus is not implemented for your platform yet
Expand Down
2 changes: 1 addition & 1 deletion src/host/premake.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#error Unknown platform detected
#endif

#define PLATFORM_POSIX (PLATFORM_LINUX || PLATFORM_BSD || PLATFORM_MACOSX || PLATFORM_SOLARIS || PLATFORM_HAIKU || PLATFORM_COSMO)
#define PLATFORM_POSIX (PLATFORM_LINUX || PLATFORM_BSD || PLATFORM_MACOSX || PLATFORM_SOLARIS || PLATFORM_HAIKU || PLATFORM_HURD || PLATFORM_COSMO)

#if defined(__x86_64__) || defined(__x86_64) || defined(__amd64__) || defined(__amd64) || \
defined(_M_X64) || defined(_M_AMD64)
Expand Down
1 change: 1 addition & 0 deletions website/docs/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ If no system is specified, Premake will identify and target the current operatin
| bsd | BSD Variants |
| emscripten | Emscripten targets |
| haiku | Haiku OS |
| hurd | GNU Hurd |
| ios | Apple iOS |
| linux | Linux Variants |
| macosx | Apple MacOSX |
Expand Down
Loading