mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 21:43:33 +00:00
fixes a regression involving the .compile and .link pragmas
This commit is contained in:
@@ -401,7 +401,9 @@ proc relativeFile(c: PContext; n: PNode; ext=""): string =
|
||||
result = parentDir(n.info.toFullPath) / s
|
||||
if not fileExists(result):
|
||||
if isAbsolute(s): result = s
|
||||
else: result = findFile(s)
|
||||
else:
|
||||
result = findFile(s)
|
||||
if result.len == 0: result = s
|
||||
|
||||
proc processCompile(c: PContext, n: PNode) =
|
||||
let found = relativeFile(c, n)
|
||||
|
||||
Reference in New Issue
Block a user