diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-02-22 00:07:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 09:07:53 +0100 |
commit | a43583f9c8771c07436ee4175e216ab802ff6165 (patch) | |
tree | a1703be1208cd97797c8e777cb710db3fcbae302 /compiler/commands.nim | |
parent | 1276e386fe68ab2ac359657297a1a2c570d7aefb (diff) | |
download | Nim-a43583f9c8771c07436ee4175e216ab802ff6165.tar.gz |
relativePath("foo", "foo") is now ".", not "" (#13452)
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 2 |
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": |