attempt to fix x86 osx build
This commit is contained in:
1 parent
861fa4ab68
commit
42f2891f35
1 file changed
+2
-2
@@ -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