mark nimprof as used when profiling

This commit is contained in:
narimiran 2019-09-02 16:00:26 +02:00
commit 545ddf4a4f

View file

@ -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.}