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
@@ -20,7 +20,8 @@
|
||||
|| BX_PLATFORM_OSX \
|
||||
|| BX_PLATFORM_PS4 \
|
||||
|| BX_PLATFORM_RPI \
|
||||
|| BX_PLATFORM_NX
|
||||
|| BX_PLATFORM_NX \
|
||||
|| BX_PLATFORM_VISIONOS
|
||||
# include <pthread.h>
|
||||
# if BX_PLATFORM_LINUX && (BX_CRT_GLIBC < 21200)
|
||||
# include <sys/prctl.h>
|
||||
@@ -243,7 +244,8 @@ namespace bx
|
||||
#if BX_CRT_NONE
|
||||
BX_UNUSED(_name);
|
||||
#elif BX_PLATFORM_OSX \
|
||||
|| BX_PLATFORM_IOS
|
||||
|| BX_PLATFORM_IOS \
|
||||
|| BX_PLATFORM_VISIONOS
|
||||
pthread_setname_np(_name);
|
||||
#elif (BX_CRT_GLIBC >= 21200)
|
||||
pthread_setname_np(ti->m_handle, _name);
|
||||
|
||||
Reference in New Issue
Block a user