summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2022-03-31 16:06:13 -0300
committerGitHub <noreply@github.com>2022-03-31 21:06:13 +0200
commit49844415ce829cb627d0b02dd6b057a1574f44d6 (patch)
tree004095b59d00d9cecac4365604fe29eac14cc3d6
parenteae29e8eafded41ce966c131bff5e66964354805 (diff)
downloadNim-49844415ce829cb627d0b02dd6b057a1574f44d6.tar.gz
Deprecate selfExe (#19660)
* Deprecate selfExe Nimscript

* Deprecate selfExe Nimscript
-rw-r--r--changelog.md2
-rw-r--r--lib/system/nimscript.nim3
2 files changed, 3 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md
index 92d2612e8..8b9d0bc29 100644
--- a/changelog.md
+++ b/changelog.md
@@ -50,6 +50,8 @@ becomes an alias for `addr`.
 
 - Remove deprecated `osproc.poDemon`, symbol with typo.
 
+- Deprecated `selfExe` for Nimscript.
+
 
 ## Language changes
 
diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim
index 0ef5fc584..5d1916c7f 100644
--- a/lib/system/nimscript.nim
+++ b/lib/system/nimscript.nim
@@ -136,9 +136,8 @@ proc dirExists*(dir: string): bool {.
   ## Checks if the directory `dir` exists.
   builtin
 
-proc selfExe*(): string =
+proc selfExe*(): string {.deprecated: "Deprecated since v1.7; Use getCurrentCompilerExe".} =
   ## Returns the currently running nim or nimble executable.
-  # TODO: consider making this as deprecated alias of `getCurrentCompilerExe`
   builtin
 
 proc toExe*(filename: string): string =