summary refs log tree commit diff stats
path: root/compiler/nimrod.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/nimrod.nim')
-rwxr-xr-xcompiler/nimrod.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/nimrod.nim b/compiler/nimrod.nim
index 1bd6698a7..0305396da 100755
--- a/compiler/nimrod.nim
+++ b/compiler/nimrod.nim
@@ -20,6 +20,10 @@ import
 when hasTinyCBackend:
   import tccgen
 
+when defined(profiler):
+  {.hint: "Profiling support is turned on!".}
+  import nimprof
+
 var 
   arguments: string = ""      # the arguments to be passed to the program that
                               # should be run