relativePath("foo", "foo") is now ".", not "" (#13452)

This commit is contained in:
Timothee Cour 2020-02-22 00:07:53 -08:00 • committed by GitHub
commit a43583f9c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 8 deletions

View file

@ -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":