aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Davidson <colrdavidson@gmail.com>2025-07-29 13:54:56 -0700
committerColin Davidson <colrdavidson@gmail.com>2025-07-29 13:54:56 -0700
commit42f2891f35a6f3de733783e599bc6e7f547ac510 (patch)
tree29600642eef098646100e859e58db6cd78bcc796
parent861fa4ab68d07bc8f3827ca29946c79c7b3f744e (diff)
attempt to fix x86 osx build
-rw-r--r--core/time/tsc_darwin.odin4
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