From 5e8762c21e63c78939688f982b8c4721ac2eed07 Mon Sep 17 00:00:00 2001 From: Nick Greenfield Date: Mon, 18 Jan 2016 20:58:03 -0800 Subject: Improve warning msg when -d:profiler not passed Partially addresses #3741 --- lib/pure/nimprof.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.} -- cgit 1.4.1-2-gfad0