From e26a2cf431272ad92e66c9a55dee80df1db79ff4 Mon Sep 17 00:00:00 2001 From: Alexander Momchilov Date: Thu, 23 Sep 2021 19:44:20 -0400 Subject: Workaround for Rosetta 2 on Darwin rdar://FB9546856 https://openradar.appspot.com/radar?id=5055988478509056 --- darwin/PlatformHelpers.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'darwin/PlatformHelpers.h') diff --git a/darwin/PlatformHelpers.h b/darwin/PlatformHelpers.h index f78ca4ea..f1af1c0b 100644 --- a/darwin/PlatformHelpers.h +++ b/darwin/PlatformHelpers.h @@ -31,4 +31,10 @@ bool Platform_KernelVersionIsBetween(KernelVersion lowerBound, KernelVersion upp double Platform_calculateNanosecondsPerMachTick(void); +void Platform_getCPUBrandString(char *cpuBrandString, size_t cpuBrandStringSize); + +bool Platform_isRunningTranslated(void); + +double Platform_calculateNanosecondsPerMachTick(void); + #endif -- cgit v1.2.3