Merge pull request #3742 from boydgreenfield/boydgreenfield-nimprof-warning

Improve warning msg when -d:profiler not passed
This commit is contained in:
Andreas Rumpf
2016-01-22 00:00:14 +01:00

View File

@@ -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.}