Improve warning msg when -d:profiler not passed
Partially addresses #3741
This commit is contained in:
parent
91adc84cf3
commit
5e8762c21e
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
## report at program exit.
|
## report at program exit.
|
||||||
|
|
||||||
when not defined(profiler) and not defined(memProfiler):
|
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 ...
|
# We don't want to profile the profiling code ...
|
||||||
{.push profiler: off.}
|
{.push profiler: off.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue