mark nimprof as used when profiling
This commit is contained in:
parent
f8f96d816c
commit
545ddf4a4f
1 changed files with 3 additions and 0 deletions
|
|
@ -14,6 +14,9 @@
|
||||||
when not defined(profiler) and not defined(memProfiler):
|
when not defined(profiler) and not defined(memProfiler):
|
||||||
{.error: "Profiling support is turned off! Enable profiling by passing `--profiler:on --stackTrace:on` to the compiler (see the Nim Compiler User Guide for more options).".}
|
{.error: "Profiling support is turned off! Enable profiling by passing `--profiler:on --stackTrace:on` to the compiler (see the Nim Compiler User Guide for more options).".}
|
||||||
|
|
||||||
|
when defined(nimHasUsed):
|
||||||
|
{.used.}
|
||||||
|
|
||||||
# We don't want to profile the profiling code ...
|
# We don't want to profile the profiling code ...
|
||||||
{.push profiler: off.}
|
{.push profiler: off.}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue