Skip to content

Conversation

@reigadegr
Copy link

When building with mimalloc as the allocator targeting musl in release mode, the compiler fails due to -Werror=date-time warnings caused by mimalloc's use of DATE and TIME macros. This conflicts with musl's reproducible builds requirements.

This commit adds the -Wno-error=date-time flag to the build configuration to downgrade these specific warnings from errors to warnings. This allows successful compilation while maintaining the functionality of mimalloc.

The change affects only musl targets in release mode and does not alter behavior for other targets or build profiles.

Fixes compilation error: expansion of date/time macro in mimalloc with musl + release combination.

@octavonce
Copy link
Collaborator

It seems this flag is breaking windows builds. Can you please change it to be removed on windows?

@reigadegr
Copy link
Author

I've made another commit,please run the tests.

@octavonce octavonce merged commit eff2109 into purpleprotocol:master May 9, 2025
5 checks passed
@DaniPopes
Copy link

@octavonce it would be great if you could release this to crates.io, aarch64-unknown-linux-gnu is also affected 🙏

@reigadegr
Copy link
Author

@octavonce it would be great if you could release this to crates.io, aarch64-unknown-linux-gnu is also affected 🙏

Add export CFLAGS="-Wno-error=date-time" to your terminal commands to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants