You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling and linking a Nim program that has import std/math explicitly or implicitly imported through another standard library, -lm is added multiple times to the link line, which results in the linker emitting a warning.
Nim Version
Nim Compiler Version 2.0.0 [MacOSX: amd64]
Compiled at 2023-10-05
Copyright (c) 2006-2023 by Andreas Rumpf
I have yet to track down during the build and installation of nim where it adds -lm.
I'm unsure what the desired behavior is for which part of the nim compiler and standard library should be responsible for when -lm is added to the linkline.
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
When compiling and linking a Nim program that has
import std/math
explicitly or implicitly imported through another standard library,-lm
is added multiple times to the link line, which results in the linker emitting a warning.Nim Version
Nim Compiler Version 2.0.0 [MacOSX: amd64]
Compiled at 2023-10-05
Copyright (c) 2006-2023 by Andreas Rumpf
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
Remove
Nim/lib/pure/math.nim
Line 159 in f2f0b3e
I have yet to track down during the build and installation of
nim
where it adds-lm
.I'm unsure what the desired behavior is for which part of the
nim
compiler and standard library should be responsible for when-lm
is added to the linkline.Additional Information
No response
The text was updated successfully, but these errors were encountered: