Dynlib fix for status-go integration (#97)
* Dynlib fix as suggested in https://github.com/status-im/nim-confutils/issues/31 * Update confutils.nim * Declare empty commandLineParams if the standard one is not declared. --------- Co-authored-by: Jacek Sieka <arnetheduck@gmail.com>
This commit is contained in:
parent
7217854b60
commit
fa6e9b09e2
|
@ -884,6 +884,12 @@ func constructEnvKey*(prefix: string, key: string): string {.raises: [].} =
|
||||||
except ValueError as err:
|
except ValueError as err:
|
||||||
raiseAssert "strformat.`&` failed: " & err.msg
|
raiseAssert "strformat.`&` failed: " & err.msg
|
||||||
|
|
||||||
|
# On Posix there is no portable way to get the command
|
||||||
|
# line from a DLL and thus the proc isn't defined in this environment.
|
||||||
|
# See https://nim-lang.org/docs/os.html#commandLineParams
|
||||||
|
when not declared(commandLineParams):
|
||||||
|
proc commandLineParams(): seq[string] = discard
|
||||||
|
|
||||||
proc loadImpl[C, SecondarySources](
|
proc loadImpl[C, SecondarySources](
|
||||||
Configuration: typedesc[C],
|
Configuration: typedesc[C],
|
||||||
cmdLine = commandLineParams(),
|
cmdLine = commandLineParams(),
|
||||||
|
|
Loading…
Reference in New Issue