summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-01-22 00:00:14 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-01-22 00:00:14 +0100
commit732479b797422adaadf6891b8d8c32230f548692 (patch)
tree013c870e7cb4fde9f992c6f37a8c5ca0c534a8e6 /lib
parent9cad19f528f2ca844ba66383bb2eb6cb5c2994d3 (diff)
parent5e8762c21e63c78939688f982b8c4721ac2eed07 (diff)
downloadNim-732479b797422adaadf6891b8d8c32230f548692.tar.gz
Merge pull request #3742 from boydgreenfield/boydgreenfield-nimprof-warning
Improve warning msg when -d:profiler not passed
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/nimprof.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/nimprof.nim b/lib/pure/nimprof.nim
index e2397b91c..5a7deaab0 100644
--- a/lib/pure/nimprof.nim
+++ b/lib/pure/nimprof.nim
@@ -12,7 +12,7 @@
 ## report at program exit.
 
 when not defined(profiler) and not defined(memProfiler):
-  {.warning: "Profiling support is turned off!".}
+  {.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).".}
 
 # We don't want to profile the profiling code ...
 {.push profiler: off.}