diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2025-07-29 13:54:56 -0700 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2025-07-29 13:54:56 -0700 |
| commit | 42f2891f35a6f3de733783e599bc6e7f547ac510 (patch) | |
| tree | 29600642eef098646100e859e58db6cd78bcc796 | |
| parent | 861fa4ab68d07bc8f3827ca29946c79c7b3f744e (diff) | |
attempt to fix x86 osx build
| -rw-r--r-- | core/time/tsc_darwin.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/time/tsc_darwin.odin b/core/time/tsc_darwin.odin index 78d5b33f8..925bd55e0 100644 --- a/core/time/tsc_darwin.odin +++ b/core/time/tsc_darwin.odin @@ -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 |