Nimscript: the compiler supports a directory wide config.nims file
This commit is contained in:
parent
1b7d8246c1
commit
29dac5ed60
2 changed files with 5 additions and 1 deletions
|
|
@ -59,6 +59,9 @@ proc handleCmdLine() =
|
|||
runNimScript(scriptFile)
|
||||
# 'nim foo.nims' means to just run the NimScript file and do nothing more:
|
||||
if scriptFile == gProjectFull: return
|
||||
elif fileExists(gProjectPath / "config.nims"):
|
||||
# directory wide NimScript file
|
||||
runNimScript(gProjectPath / "config.nims")
|
||||
# now process command line arguments again, because some options in the
|
||||
# command line can overwite the config file's settings
|
||||
extccomp.initVars()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue