nandi/clonimpublic Fork
⑂ f7be036
Commits
⬇ Clone ▾
git clone https://git.rickub.com/nandi/clonim.git
git clone ssh://git@rickub.com/nandi/clonim.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

fix: link math library after runtime archive

nandithebull committed 2026-09-20T23:33:03-07:00 Browse files
f7be036 parent: 2e730e2
modified src/clonim.nim +2 -1
@@ -198,10 +198,11 @@ proc main() =
198198
199199 var nimCmd = @["nim", "c", "--hints:off", "--warnings:off",
200200 "--path:" & srcDir(), "--nimcache:" & (work / "cache"),
201- "--passL:-lm", "-o:" & outBin]
201+ "-o:" & outBin]
202202 when not defined(releaseCompiler):
203203 nimCmd.add "--passL:-Wl,--allow-multiple-definition"
204204 nimCmd.add "--passL:" & rtLib
205+ nimCmd.add "--passL:-lm"
205206 if release: nimCmd.add "-d:release"
206207 nimCmd.add nimFile
207208 if verbose and not cached: echo "clonim: " & nimCmd.join(" ")
@@ -198,10 +198,11 @@ proc main() =
198 198
199 var nimCmd = @["nim", "c", "--hints:off", "--warnings:off",199 var nimCmd = @["nim", "c", "--hints:off", "--warnings:off",
200 "--path:" & srcDir(), "--nimcache:" & (work / "cache"),200 "--path:" & srcDir(), "--nimcache:" & (work / "cache"),
201- "--passL:-lm", "-o:" & outBin]201+ "-o:" & outBin]
202 when not defined(releaseCompiler):202 when not defined(releaseCompiler):
203 nimCmd.add "--passL:-Wl,--allow-multiple-definition"203 nimCmd.add "--passL:-Wl,--allow-multiple-definition"
204 nimCmd.add "--passL:" & rtLib204 nimCmd.add "--passL:" & rtLib
205+ nimCmd.add "--passL:-lm"
205 if release: nimCmd.add "-d:release"206 if release: nimCmd.add "-d:release"
206 nimCmd.add nimFile207 nimCmd.add nimFile
207 if verbose and not cached: echo "clonim: " & nimCmd.join(" ")208 if verbose and not cached: echo "clonim: " & nimCmd.join(" ")