mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-05-29 18:19:25 +00:00
use orc instead of refc in waku.nimble
This commit is contained in:
parent
2447ce9e73
commit
01f9ed461d
12
waku.nimble
12
waku.nimble
@ -99,7 +99,7 @@ proc buildModule(filePath, params = ""): bool =
|
||||
echo "File to build not found: " & filePath
|
||||
return false
|
||||
|
||||
exec "nim c --out:build/" & filepath & ".bin --mm:refc " & getMyCPU() & getNimParams() & " " & params &
|
||||
exec "nim c --out:build/" & filepath & ".bin --mm:orc " & getMyCPU() & getNimParams() & " " & params &
|
||||
" " & filePath
|
||||
|
||||
# exec will raise exception if anything goes wrong
|
||||
@ -108,7 +108,7 @@ proc buildModule(filePath, params = ""): bool =
|
||||
proc buildBinary(name: string, srcDir = "./", params = "") =
|
||||
if not dirExists "build":
|
||||
mkDir "build"
|
||||
exec "nim c --out:build/" & name & " --mm:refc " & getMyCPU() & getNimParams() & " " & params & " " &
|
||||
exec "nim c --out:build/" & name & " --mm:orc " & getMyCPU() & getNimParams() & " " & params & " " &
|
||||
srcDir & name & ".nim"
|
||||
|
||||
proc buildLibrary(lib_name: string, srcDir = "./", params = "", `type` = "static", srcFile = "libwaku.nim", mainPrefix = "libwaku") =
|
||||
@ -117,11 +117,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:orc --header -d:metrics --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:orc --header -d:metrics --nimMainPrefix:" & mainPrefix & " --skipParentCfg:off -d:discv5_protocol_id=d5waku " &
|
||||
getMyCPU() & getNimParams() & " " & srcDir & "/" & srcFile
|
||||
|
||||
proc buildLibDynamicWindows(libName: string, folderName: string) =
|
||||
@ -179,7 +179,7 @@ proc buildMobileAndroid(srcDir = ".", params = "") =
|
||||
mkDir outDir
|
||||
|
||||
exec "nim c" & " --out:" & outDir &
|
||||
"/liblogosdelivery.so --threads:on --app:lib --opt:speed --noMain --mm:refc -d:chronicles_sinks=textlines[dynamic] --header -d:chronosEventEngine=epoll --passL:-L" &
|
||||
"/liblogosdelivery.so --threads:on --app:lib --opt:speed --noMain --mm:orc -d:chronicles_sinks=textlines[dynamic] --header -d:chronosEventEngine=epoll --passL:-L" &
|
||||
outdir & " --passL:-lrln --passL:-llog --cpu:" & cpu & " --nimMainPrefix:liblogosdelivery --os:android -d:androidNDK " & params &
|
||||
getNimParams() & " " & srcDir & "/liblogosdelivery.nim"
|
||||
|
||||
@ -241,7 +241,7 @@ proc buildMobileIOS(srcDir = ".", params = "") =
|
||||
" --nimcache:" & nimcacheDir &
|
||||
" --os:ios --cpu:" & cpu &
|
||||
" --compileOnly:on" &
|
||||
" --noMain --mm:refc" &
|
||||
" --noMain --mm:orc" &
|
||||
" --threads:on --opt:size --header" &
|
||||
" -d:metrics -d:discv5_protocol_id=d5waku" &
|
||||
" --nimMainPrefix:liblogosdelivery --skipParentCfg:on" &
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user