From 21bc2c14bc7408427a8b4851a7a3f15251f2afa8 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 8 Oct 2023 11:32:32 -0400 Subject: common: add arm64 native clock --- src/common/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common/CMakeLists.txt') diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 416203c59..8a1861051 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -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 -- cgit v1.2.3