diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-13 00:09:22 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:33 +0200 |
commit | 5e79e361c97e88b4a5912990eda0f1fb0d4a6dbd (patch) | |
tree | b4ea98e404aec68a8eae7f9d64fa24bb4b29effa /include | |
parent | 7c24c5d0de4d3584d6d2f9f3c26b4d757b0a0df2 (diff) |
Add posix as a platform, remove zig from compile_commands.json
Diffstat (limited to 'include')
-rw-r--r-- | include/Platform.hpp | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/include/Platform.hpp b/include/Platform.hpp index 3ae3d24..955df57 100644 --- a/include/Platform.hpp +++ b/include/Platform.hpp @@ -6,36 +6,43 @@ namespace sibs { - enum Platform : u32 + enum Platform : u64 { PLATFORM_INVALID = 0x00000000, PLATFORM_ANY = 0xFFFFFFFF, - PLATFORM_LINUX = 1 << 1, - PLATFORM_LINUX32 = 1 << 2 | PLATFORM_LINUX, - PLATFORM_LINUX64 = 1 << 3 | PLATFORM_LINUX, + PLATFORM_POSIX = 1 << 1, + PLATFORM_POSIX32 = 1 << 2 | PLATFORM_POSIX, + PLATFORM_POSIX64 = 1 << 3 | PLATFORM_POSIX, - PLATFORM_WIN = 1 << 4, - PLATFORM_WIN32 = 1 << 5 | PLATFORM_WIN, - PLATFORM_WIN64 = 1 << 6 | PLATFORM_WIN, + PLATFORM_LINUX = 1 << 4 | PLATFORM_POSIX, + PLATFORM_LINUX32 = 1 << 5 | PLATFORM_LINUX | PLATFORM_POSIX32, + PLATFORM_LINUX64 = 1 << 6 | PLATFORM_LINUX | PLATFORM_POSIX64, - PLATFORM_MACOS = 1 << 7, - PLATFORM_MACOS32 = 1 << 8 | PLATFORM_MACOS, - PLATFORM_MACOS64 = 1 << 9 | PLATFORM_MACOS, + PLATFORM_WIN = 1 << 7, + PLATFORM_WIN32 = 1 << 8 | PLATFORM_WIN, + PLATFORM_WIN64 = 1 << 9 | PLATFORM_WIN, - PLATFORM_BSD = 1 << 10, - PLATFORM_OPENBSD = 1 << 11 | PLATFORM_BSD, - PLATFORM_OPENBSD32 = 1 << 12 | PLATFORM_OPENBSD, - PLATFORM_OPENBSD64 = 1 << 13 | PLATFORM_OPENBSD, + PLATFORM_MACOS = 1 << 10 | PLATFORM_POSIX, + PLATFORM_MACOS32 = 1 << 11 | PLATFORM_MACOS | PLATFORM_POSIX32, + PLATFORM_MACOS64 = 1 << 12 | PLATFORM_MACOS | PLATFORM_POSIX64, - PLATFORM_HAIKU = 1 << 20, - PLATFORM_HAIKU32 = 1 << 21 | PLATFORM_HAIKU, - PLATFORM_HAIKU64 = 1 << 22 | PLATFORM_HAIKU + PLATFORM_BSD = 1 << 13 | PLATFORM_POSIX, + PLATFORM_OPENBSD = 1 << 14 | PLATFORM_BSD, + PLATFORM_OPENBSD32 = 1 << 15 | PLATFORM_OPENBSD | PLATFORM_POSIX32, + PLATFORM_OPENBSD64 = 1 << 16 | PLATFORM_OPENBSD | PLATFORM_POSIX64, + + PLATFORM_HAIKU = 1 << 24 | PLATFORM_POSIX, + PLATFORM_HAIKU32 = 1 << 25 | PLATFORM_HAIKU | PLATFORM_POSIX32, + PLATFORM_HAIKU64 = 1 << 26 | PLATFORM_HAIKU | PLATFORM_POSIX64 }; const StringViewMap<Platform> PLATFORM_BY_NAME = { { "any", PLATFORM_ANY }, + { "posix", PLATFORM_POSIX }, + { "posix32", PLATFORM_POSIX32 }, + { "posix64", PLATFORM_POSIX64 }, { "linux", PLATFORM_LINUX }, { "linux32", PLATFORM_LINUX32 }, { "linux64", PLATFORM_LINUX64 }, |