-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration load
doesn't work when used as a dynamic library due to commandLineParams()
#31
Comments
cc @zah for ideas on simple proper solution, or if something like this seems workable |
To give some context, the goal is to load default config options in a shared library https://github.com/status-im/nim-waku/pull/614/files#r651031823 |
I also notice that the above hack, while it makes
|
I'm sorry for not noticing this issue earlier. It's actually quite easy to fix. We need to create a low-level overload of |
* Dynlib fix as suggested in #31 * Update confutils.nim * Declare empty commandLineParams if the standard one is not declared. --------- Co-authored-by: Jacek Sieka <[email protected]>
commandLineParams doesn't work when used in a dynamic library:
One way to get around this would be something like
When paramCount is not declared, this is equivalent to cmdLine being empty.
However, this seems like a bit of a hack and there are probably better solutions here?
The text was updated successfully, but these errors were encountered: