Skip to content

Fix passing custom CG_RUSTFLAGS when building sysroot #493

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

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Fix passing custom CG_RUSTFLAGS when building sysroot #493

merged 1 commit into from
Apr 17, 2024

Conversation

darcagn
Copy link
Contributor

@darcagn darcagn commented Apr 17, 2024

Fixes issue #491

@@ -153,6 +153,11 @@ pub fn build_sysroot(env: &HashMap<String, String>, config: &ConfigInfo) -> Resu
"debug"
};

if let Ok(cg_rustflags) = std::env::var("CG_RUSTFLAGS") {
Copy link
Member

Choose a reason for hiding this comment

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

Ah so the problem is that we don't use config.rustflags here. I see. 👍

Copy link
Member

@GuillaumeGomez GuillaumeGomez 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, thanks!

@antoyo antoyo merged commit ab7d138 into rust-lang:master Apr 17, 2024
34 checks passed
@antoyo
Copy link
Contributor

antoyo commented Apr 17, 2024

Thanks for your contribution!

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