mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-03-27 11:23:07 +00:00
allow consume NIM_PARAMS in waku.nimble
This commit is contained in:
parent
d18ca69508
commit
b880761581
@ -98,6 +98,11 @@ proc buildLibrary(outLibNameAndExt: string, libName: string, extra_params = "",
|
||||
if not dirExists "build":
|
||||
mkDir "build"
|
||||
|
||||
var extra_params = extra_params
|
||||
let nimParams = getEnv("NIM_PARAMS")
|
||||
if nimParams.len > 0:
|
||||
extra_params &= " " & nimParams
|
||||
|
||||
if `type` == "static":
|
||||
exec "nim c" & " --out:build/" & outLibNameAndExt &
|
||||
" --threads:on --app:staticlib --opt:size --noMain --mm:refc --header -d:metrics" &
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user