fix: remove -lm flag for windows native target#944
fix: remove -lm flag for windows native target#944CrazyboyQCD wants to merge 1 commit intomoonbitlang:mainfrom
-lm flag for windows native target#944Conversation
c7be85b to
d00b4a7
Compare
|
Thanks for your PR! We're sorry about the current condition of our codebase that made things unclear, but the implementation in this PR is a little off. The distinction of MSVC and GCC needs to be done at runtime instead of compile-time, so moon/crates/moonbuild/src/gen/gen_build.rs Lines 743 to 749 in b897b6d |
d00b4a7 to
67315e4
Compare
-lm flag for msvc target-lm flag for windows native target
I test that |
|
Okay, I have just verified that both MSVC and GNU targets on Windows have math functions defined in MSVCRT. We will discuss this change internally before proceeding. |
|
At the meantime, you might want to sign the CLA to make your changes mergable :) Check this CI for more details: https://github.com/moonbitlang/moon/actions/runs/16511697077/job/46694762934?pr=944 |
67315e4 to
0b3367d
Compare
This comment was marked as resolved.
This comment was marked as resolved.
0b3367d to
a3840f6
Compare
041cd10 to
0997e0b
Compare
|
Do note that if we're doing cross-compilation in the future, we can't use a compile-time |
Related Issues
Type of Pull Request
Does this PR change existing behavior?
-lmflag for buildingmsvctargetDoes this PR introduce new dependencies?
Checklist: