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

cmake/FindRust.cmake: inherit RUSTFLAGS from the environment #1301

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

liushuyu
Copy link
Contributor

@liushuyu liushuyu commented Jul 3, 2024

This pull request changes the FindRust.cmake script so the RUSTFLAGS set from the environment won't be overridden.

This is needed because some downstream distributors (e.g. Linux distros) will need to append several Rust flags to get reproducible builds and/or make the project build on certain architectures.

@micahsnyder
Copy link
Contributor

Thanks @liushuyu this makes sense to me. Will test it soon as our internal CI system is working right. (everything seems to be broken right now, very frustrating!)

@liushuyu liushuyu force-pushed the respect-build-flags branch from 664fe8f to bef8451 Compare July 23, 2024 02:05
Copy link
Contributor

@micahsnyder micahsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@micahsnyder micahsnyder merged commit 2a5241a into Cisco-Talos:main Jul 23, 2024
23 of 24 checks passed
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.

2 participants