From 3e2e9981c6a83420c253afbea58d32891d1e549d Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 10 Oct 2025 20:14:25 +0200 Subject: [PATCH] Fib lib name on windows --- build.nims | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.nims b/build.nims index 2a1823ab..03aedbbe 100644 --- a/build.nims +++ b/build.nims @@ -38,7 +38,8 @@ proc buildLibrary(name: string, srcDir = "./", params = "", `type` = "dynamic") "-d:chronicles_log_level=TRACE " & params & " " & srcDir & name & ".nim" else: - exec "nim c" & " --out:build/" & name & + let lib_name = (when defined(windows): name & ".dll" else: name & ".so") + exec "nim c" & " --out:build/" & lib_name & ".a --threads:on --app:staticlib --opt:size --noMain --mm:refc --header --d:metrics " & "--nimMainPrefix:libcodex -d:noSignalHandler " & "-d:LeopardExtraCompilerFlags=-fPIC " &