Skip to content

nim.cfg but for Nelua? #67

Answered by edubart
stefanos82 asked this question in Q&A
Jun 4, 2021 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

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 directory nelua is running from for per project configuration

The 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:

return {
  cc="ccache gcc",
  cflags="-Wall -Wextra",
  add_path={
    '/home/bart/projects/nelua/nelua-decl/libs/?/?.nelua',
  }
}

The file can h…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@stefanos82
Comment options

@edubart
Comment options

@stefanos82
Comment options

@edubart
Comment options

@stefanos82
Comment options

Answer selected by stefanos82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants