mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-12 13:29:42 +00:00
fix: update for liblogosdelivery and libwaku
This commit is contained in:
parent
54e695f4b6
commit
4954171933
@ -76,7 +76,7 @@ proc getMyCPU(): string =
|
||||
return " --cpu:amd64 "
|
||||
|
||||
proc getNimParams(): string =
|
||||
return " " & getEnv("NIM_PARAMS") & " " & getEnv("NIMFLAGS") & " "
|
||||
return " " & getEnv("NIM_PARAMS") & " "
|
||||
|
||||
### Helper functions
|
||||
proc buildModule(filePath, params = ""): bool =
|
||||
@ -105,11 +105,11 @@ proc buildLibrary(lib_name: string, srcDir = "./", params = "", `type` = "static
|
||||
|
||||
if `type` == "static":
|
||||
exec "nim c" & " --out:build/" & lib_name &
|
||||
" --threads:on --app:staticlib --opt:speed --noMain --mm:refc --header -d:metrics --nimMainPrefix:" & mainPrefix & " --skipParentCfg:on -d:discv5_protocol_id=d5waku " &
|
||||
" --threads:on --app:staticlib --opt:speed --noMain --mm:refc --header -d:metrics -d:postgres --nimMainPrefix:" & mainPrefix & " --skipParentCfg:on -d:discv5_protocol_id=d5waku " &
|
||||
getMyCPU() & getNimParams() & srcDir & "/" & srcFile
|
||||
else:
|
||||
exec "nim c" & " --out:build/" & lib_name &
|
||||
" --threads:on --app:lib --opt:speed --noMain --mm:refc --header -d:metrics --nimMainPrefix:" & mainPrefix & " --skipParentCfg:off -d:discv5_protocol_id=d5waku " &
|
||||
" --threads:on --app:lib --opt:speed --noMain --mm:refc --header -d:metrics -d:postgres --nimMainPrefix:" & mainPrefix & " --skipParentCfg:off -d:discv5_protocol_id=d5waku " &
|
||||
getMyCPU() & getNimParams() & " " & srcDir & "/" & srcFile
|
||||
|
||||
proc buildLibDynamicWindows(libName: string, folderName: string) =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user