Skip to content
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

ccache: unset CI env variable before running cmake #5102

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

jeremyd2019
Copy link
Member

@jeremyd2019 jeremyd2019 commented Dec 26, 2024

ccache's cmake files will turn on a "dev mode" if CI is set in the environment, turning on -Werror among other things. This was causing the build on i686 to fail due to a warning with fmt 11. We don't really want ccache's dev mode, so unset it explicitly.

@jeremyd2019
Copy link
Member Author

msys2-autobuild unsets most GHA-set environment variables (including CI), so this is not something that should affect the resulting binary

Oops, I may be mistaken on that: https://github.com/msys2-arm/msys2-autobuild/blob/35ff0b71b62cde6288cee94b82979cfcc017d16b/msys2_autobuild/build.py#L106 shows it just removing variables whose names start with GITHUB_ or RUNNER_, not CI.

ccache's cmake files will turn on a "dev mode" if CI is set in the environment, turning on -Werror among other things.  This was causing the build on i686 to fail due to a warning with fmt 11.  We don't really want ccache's dev mode, so unset it explicitly.
@ognevny
Copy link
Contributor

ognevny commented Dec 27, 2024

@jeremyd2019
Copy link
Member Author

Yeah, that would probably work too, as would the -DWARNINGS_AS_ERRORS=OFF and -Wno-error=stringop-overflow

@lazka lazka merged commit e31b1b9 into msys2:master Dec 27, 2024
2 checks passed
@jeremyd2019 jeremyd2019 deleted the ccache-unset-ci branch December 27, 2024 17:18
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