summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-02-22 00:07:53 -0800
committerGitHub <noreply@github.com>2020-02-22 09:07:53 +0100
commita43583f9c8771c07436ee4175e216ab802ff6165 (patch)
treea1703be1208cd97797c8e777cb710db3fcbae302 /compiler/commands.nim
parent1276e386fe68ab2ac359657297a1a2c570d7aefb (diff)
downloadNim-a43583f9c8771c07436ee4175e216ab802ff6165.tar.gz
relativePath("foo", "foo") is now ".", not "" (#13452)
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r--compiler/commands.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index ca6ef5d94..cecb07386 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -865,6 +865,8 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
       defineSymbol(conf.symbols, "NimMinor", "0")
       # always be compatible with 1.0.2 for now:
       defineSymbol(conf.symbols, "NimPatch", "2")
+      # old behaviors go here:
+      defineSymbol(conf.symbols, "nimOldRelativePathBehavior")
     else:
       localError(conf, info, "unknown Nim version; currently supported values are: {1.0}")
   of "benchmarkvm":