diff options
author | Araq <rumpf_a@web.de> | 2018-12-16 19:22:49 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-12-16 19:22:49 +0100 |
commit | d66eb04ce9f5da6149744a07ca3b9adbfe9705a6 (patch) | |
tree | 757d6f3d1c679737b0d4f764735a89d7a2ee8cb7 /lib | |
parent | 7ec77684e9d4c429efae64e9141bf549faef3865 (diff) | |
download | Nim-d66eb04ce9f5da6149744a07ca3b9adbfe9705a6.tar.gz |
fixes #8991, fixes #4446
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index d51f9e899..2497d39a6 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1539,7 +1539,7 @@ else: ## ``string`` if the taint mode is not ## turned on. -when defined(profiler): +when defined(profiler) and not defined(nimscript): proc nimProfile() {.compilerProc, noinline.} when hasThreadSupport: {.pragma: rtlThreadVar, threadvar.} @@ -3569,7 +3569,7 @@ when not defined(JS): #and not defined(nimscript): when defined(endb) and not defined(nimscript): include "system/debugger" - when defined(profiler) or defined(memProfiler): + when (defined(profiler) or defined(memProfiler)) and not defined(nimscript): include "system/profiler" {.pop.} # stacktrace |