From 545ddf4a4f60233c3e547f16fa4ce83563a7bf7f Mon Sep 17 00:00:00 2001 From: narimiran Date: Mon, 2 Sep 2019 16:00:26 +0200 Subject: mark nimprof as used when profiling --- lib/pure/nimprof.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pure/nimprof.nim b/lib/pure/nimprof.nim index 27b7d3eca..550664f4f 100644 --- a/lib/pure/nimprof.nim +++ b/lib/pure/nimprof.nim @@ -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.} -- cgit 1.4.1-2-gfad0