mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
feat: add visionOS support (#323)
* feat: define BX_PLATFORM_VISIONOS * chore: add xros, xrsimulator toolchain support
This commit is contained in:
committed by
GitHub
parent
0b8bb71897
commit
f8dc7147b6
@@ -59,6 +59,7 @@
|
||||
#define BX_PLATFORM_PS4 0
|
||||
#define BX_PLATFORM_PS5 0
|
||||
#define BX_PLATFORM_RPI 0
|
||||
#define BX_PLATFORM_VISIONOS 0
|
||||
#define BX_PLATFORM_WINDOWS 0
|
||||
#define BX_PLATFORM_WINRT 0
|
||||
#define BX_PLATFORM_XBOXONE 0
|
||||
@@ -196,6 +197,9 @@
|
||||
|| defined(__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__)
|
||||
# undef BX_PLATFORM_IOS
|
||||
# define BX_PLATFORM_IOS 1
|
||||
#elif defined(__has_builtin) && __has_builtin(__is_target_os) && __is_target_os(xros)
|
||||
# undef BX_PLATFORM_VISIONOS
|
||||
# define BX_PLATFORM_VISIONOS 1
|
||||
#elif defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__)
|
||||
# undef BX_PLATFORM_OSX
|
||||
# define BX_PLATFORM_OSX __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
|
||||
@@ -275,6 +279,7 @@
|
||||
|| BX_PLATFORM_PS4 \
|
||||
|| BX_PLATFORM_PS5 \
|
||||
|| BX_PLATFORM_RPI \
|
||||
|| BX_PLATFORM_VISIONOS \
|
||||
)
|
||||
|
||||
///
|
||||
@@ -291,6 +296,7 @@
|
||||
|| BX_PLATFORM_PS4 \
|
||||
|| BX_PLATFORM_PS5 \
|
||||
|| BX_PLATFORM_RPI \
|
||||
|| BX_PLATFORM_VISIONOS \
|
||||
|| BX_PLATFORM_WINDOWS \
|
||||
|| BX_PLATFORM_WINRT \
|
||||
|| BX_PLATFORM_XBOXONE \
|
||||
@@ -380,6 +386,8 @@
|
||||
# define BX_PLATFORM_NAME "Hurd"
|
||||
#elif BX_PLATFORM_IOS
|
||||
# define BX_PLATFORM_NAME "iOS"
|
||||
#elif BX_PLATFORM_VISIONOS
|
||||
# define BX_PLATFORM_NAME "visionOS"
|
||||
#elif BX_PLATFORM_LINUX
|
||||
# define BX_PLATFORM_NAME "Linux"
|
||||
#elif BX_PLATFORM_NONE
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#elif BX_COMPILER_CLANG \
|
||||
&& !BX_PLATFORM_EMSCRIPTEN \
|
||||
&& !BX_PLATFORM_IOS \
|
||||
&& !BX_PLATFORM_VISIONOS \
|
||||
&& BX_CLANG_HAS_EXTENSION(attribute_ext_vector_type)
|
||||
# undef BX_SIMD_LANGEXT
|
||||
# define BX_SIMD_LANGEXT 1
|
||||
|
||||
Reference in New Issue
Block a user