allow consume NIM_PARAMS in waku.nimble

This commit is contained in:
Ivan FB 2026-03-26 23:20:16 +01:00
parent d18ca69508
commit b880761581
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270

View File

@ -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" &