summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornarimiran <narimiran@disroot.org>2019-09-02 16:00:26 +0200
committernarimiran <narimiran@disroot.org>2019-09-02 16:00:26 +0200
commit545ddf4a4f60233c3e547f16fa4ce83563a7bf7f (patch)
treebedcac3ffc6fa940dc9880b7795cabc5190e4640
parentf8f96d816cdd1a8edc3f1582a76ae483035f6a37 (diff)
downloadNim-545ddf4a4f60233c3e547f16fa4ce83563a7bf7f.tar.gz
mark nimprof as used when profiling
-rw-r--r--lib/pure/nimprof.nim3
1 files changed, 3 insertions, 0 deletions
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.}