From 27db76782f9fa2b180399eb988516976c38e3ddd Mon Sep 17 00:00:00 2001 From: Ryan McConnell Date: Tue, 29 Apr 2025 06:59:28 -0400 Subject: [PATCH] init --- compiler/nimconf.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/nimconf.nim b/compiler/nimconf.nim index 5417cd1e93aaa..3814cbd151366 100644 --- a/compiler/nimconf.nim +++ b/compiler/nimconf.nim @@ -223,6 +223,7 @@ proc readConfigFile*(filename: AbsoluteFile; cache: IdentCache; stream = llStreamOpen(filename, fmRead) if stream != nil: openLexer(L, filename, stream, cache, config) + setConfigVar(config, "srcDir", parentDir(filename.string)) tok = Token(tokType: tkEof) # to avoid a pointless warning var condStack: seq[bool] = @[] confTok(L, tok, config, condStack) # read in the first token