avoid passing NIM_PARAMS twice

This commit is contained in:
Ivan FB 2026-04-04 18:19:43 +02:00
parent e8f7adff4d
commit 78a6341915
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270
2 changed files with 3 additions and 3 deletions

View File

@ -434,10 +434,10 @@ else ifeq ($(detected_OS),Linux)
endif
libwaku: | $(NIMBLEDEPS_STAMP) librln
nimble --verbose libwaku$(BUILD_COMMAND) $(NIM_PARAMS) waku.nimble
nimble --verbose libwaku$(BUILD_COMMAND) waku.nimble
liblogosdelivery: | $(NIMBLEDEPS_STAMP) librln
nimble --verbose liblogosdelivery$(BUILD_COMMAND) $(NIM_PARAMS) waku.nimble
nimble --verbose liblogosdelivery$(BUILD_COMMAND) waku.nimble
logosdelivery_example: | build liblogosdelivery
@echo -e $(BUILD_MSG) "build/$@"

View File

@ -102,7 +102,7 @@ proc buildModule(filePath, params = "", lang = "c"): bool =
proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
if not dirExists "build":
mkDir "build"
exec "nim " & lang & " --out:build/" & name & " --mm:refc " & getMyCPU() & getNimParams() & " " &
exec "nim " & lang & " --out:build/" & name & " --mm:refc " & getMyCPU() & getNimParams() & " " & params & " " &
srcDir & name & ".nim"
proc buildLibrary(lib_name: string, srcDir = "./", params = "", `type` = "static", srcFile = "libwaku.nim", mainPrefix = "libwaku") =