-
Notifications
You must be signed in to change notification settings - Fork 41
fix: remove -lm flag for windows native target
#944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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: