nim.cfg but for Nelua? #67
-
With Nim we can use custom settings with the help of I would like to use Does Nelua support custom config settings somehow? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Yes, sorry as this is not in the documentation yet, but this is supported, you can create
The compiler will give priority for command line flags, then The following is an example of its contents: return {
cc="ccache gcc",
cflags="-Wall -Wextra",
add_path={
'/home/bart/projects/nelua/nelua-decl/libs/?/?.nelua',
}
} The file can have most options from |
Beta Was this translation helpful? Give feedback.
Yes, sorry as this is not in the documentation yet, but this is supported, you can create
neluacfg.lua
files in the following directories:$HOME/.config/nelua/neluacfg.lua
for global configurations across the system.neluacfg.lua
in the current directorynelua
is running from for per project configurationThe compiler will give priority for command line flags, then
.neluacfg.lua
in the current directory and finally fallback to$HOME/.config/nelua/neluacfg.lua
for global configuration in the system.The following is an example of its contents:
The file can h…