modified src/clonim.nim +2 -1
| @@ -198,10 +198,11 @@ proc main() = |
| 198 | 198 | |
| 199 | 199 | var nimCmd = @["nim", "c", "--hints:off", "--warnings:off", |
| 200 | 200 | "--path:" & srcDir(), "--nimcache:" & (work / "cache"), |
| 201 | | - "--passL:-lm", "-o:" & outBin] |
| 201 | + "-o:" & outBin] |
| 202 | 202 | when not defined(releaseCompiler): |
| 203 | 203 | nimCmd.add "--passL:-Wl,--allow-multiple-definition" |
| 204 | 204 | nimCmd.add "--passL:" & rtLib |
| 205 | + nimCmd.add "--passL:-lm" |
| 205 | 206 | if release: nimCmd.add "-d:release" |
| 206 | 207 | nimCmd.add nimFile |
| 207 | 208 | 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:" & rtLib | 204 | 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 nimFile | 207 | nimCmd.add nimFile |
| 207 | if verbose and not cached: echo "clonim: " & nimCmd.join(" ") | 208 | if verbose and not cached: echo "clonim: " & nimCmd.join(" ") |