summary refs log tree commit diff stats
path: root/compiler/options.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/options.nim')
-rw-r--r--compiler/options.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/options.nim b/compiler/options.nim
index 50f12d843..e7c9346a7 100644
--- a/compiler/options.nim
+++ b/compiler/options.nim
@@ -254,6 +254,12 @@ proc removeTrailingDirSep*(path: string): string =
   else:
     result = path
 
+proc disableNimblePath*() =
+  gNoNimblePath = true
+  lazyPaths.head = nil
+  lazyPaths.tail = nil
+  lazyPaths.counter = 0
+
 include packagehandling
 
 proc getNimcacheDir*: string =