Skip to content

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

Merged
val-ms merged 1 commit intoCisco-Talos:mainfrom
liushuyu:respect-build-flags
Jul 23, 2024
Merged

cmake/FindRust.cmake: inherit RUSTFLAGS from the environment#1301
val-ms merged 1 commit intoCisco-Talos:mainfrom
liushuyu:respect-build-flags

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.

@val-ms
Copy link
Contributor

val-ms commented Jul 11, 2024

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

@val-ms val-ms 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.

@val-ms val-ms merged commit 2a5241a into Cisco-Talos:main Jul 23, 2024
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