Skip to content

Commit 9a343b8

Browse files
committed
don't auto fail due to getTicks on ARM
1 parent 7aa5742 commit 9a343b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

weave/instrumentation/timers.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ when defined(i386) or defined(amd64):
7171
lfence()
7272
return rdtsc()
7373
else:
74-
{.error: "getticks is not supported on this CPU architecture".}
74+
when defined(WV_profile):
75+
{.error: "getticks is not supported on this CPU architecture".}
7576

7677
template timer_new*(timer: var Timer, ghzClock: float64) =
7778
timer.elapsed = 0

0 commit comments

Comments
 (0)