common: add arm64 native clock

This commit is contained in:
Liam 2023-10-08 11:32:32 -04:00
parent bd42bba71c
commit 21bc2c14bc
4 changed files with 134 additions and 1 deletions

View file

@ -189,6 +189,14 @@ if(ARCHITECTURE_x86_64)
target_link_libraries(common PRIVATE xbyak::xbyak)
endif()
if (ARCHITECTURE_arm64 AND (ANDROID OR LINUX))
target_sources(common
PRIVATE
arm64/native_clock.cpp
arm64/native_clock.h
)
endif()
if (MSVC)
target_compile_definitions(common PRIVATE
# The standard library doesn't provide any replacement for codecvt yet