mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
attempt to fix x86 osx build
This commit is contained in:
@@ -5,9 +5,9 @@ import "base:intrinsics"
|
||||
import "core:sys/unix"
|
||||
|
||||
_get_tsc_frequency :: proc "contextless" () -> (freq: u64, ok: bool) {
|
||||
if ODIN_ARCH == .amd64 {
|
||||
when ODIN_ARCH == .amd64 {
|
||||
unix.sysctlbyname("machdep.tsc.frequency", &freq) or_return
|
||||
} else if ODIN_ARCH == .arm64 {
|
||||
} else when ODIN_ARCH == .arm64 {
|
||||
freq = u64(intrinsics.read_cycle_counter_frequency())
|
||||
} else {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user