mark nimprof as used when profiling

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

View File

@@ -14,6 +14,9 @@
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).".}
when defined(nimHasUsed):
{.used.}
# We don't want to profile the profiling code ...
{.push profiler: off.}