summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 =