mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
Merge pull request #3742 from boydgreenfield/boydgreenfield-nimprof-warning
Improve warning msg when -d:profiler not passed
This commit is contained in:
@@ -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.}
|
||||
|
||||
Reference in New Issue
Block a user