summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorKaushal Modi <kaushal.modi@gmail.com>2019-06-15 05:32:26 -0400
committerAndreas Rumpf <rumpf_a@web.de>2019-06-15 11:32:26 +0200
commit71829226229287f4e1d38c9e4e91fb3d8b8fb648 (patch)
tree176418cf8ba5a6d1b400489978bdb96de7e07ecc /compiler
parenteadea343ef7ef49026eccbd9a5f4d5df5071ceb4 (diff)
downloadNim-71829226229287f4e1d38c9e4e91fb3d8b8fb648.tar.gz
[feature] Added os.delEnv; add delEnv support to nimscript too (#11466)
[feature] Fixes https://github.com/nim-lang/Nim/issues/11452.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/scriptconfig.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/scriptconfig.nim b/compiler/scriptconfig.nim
index db60dafcc..6c3d0a122 100644
--- a/compiler/scriptconfig.nim
+++ b/compiler/scriptconfig.nim
@@ -96,6 +96,8 @@ proc setupVM*(module: PSym; cache: IdentCache; scriptName: string;
     setResult(a, os.existsEnv(a.getString 0))
   cbconf putEnv:
     os.putEnv(a.getString 0, a.getString 1)
+  cbconf delEnv:
+    os.delEnv(a.getString 0)
   cbconf dirExists:
     setResult(a, os.dirExists(a.getString 0))
   cbconf fileExists: