Skip to content

Commit e469402

Browse files
simplify previous commit
1 parent fa68fed commit e469402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

waku.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ proc buildLibrary(name: string, srcDir = "./", params = "", `type` = "static") =
7474
".a --threads:on --app:staticlib --opt:size --noMain --mm:refc --header -d:metrics --nimMainPrefix:libwaku --skipParentCfg:on -d:discv5_protocol_id=d5waku " &
7575
extra_params & " " & srcDir & name & ".nim"
7676
else:
77-
let lib_ext_unix = if extra_params.contains("macos"): ".dylib" else: ".so"
77+
let lib_ext_unix = if "macos" in extra_params: ".dylib" else: ".so"
7878
let lib_name = (when defined(windows): toDll(name) else: name & lib_ext_unix)
7979
when defined(windows):
8080
exec "nim c" & " --out:build/" & lib_name &

0 commit comments

Comments
 (0)