Skip to content

Conversation

justsmth
Copy link
Contributor

Issues

See: rust-lang/cc-rs#1043

Description of changes:

  • cc utilizes the CFLAGS environment variable to obtain compiler arguments. The include directories specified in CFLAGS come before and take precedence over the include directories specified by our project.

Call-outs:

  • If this issue is corrected upstream in cc-rs, the CFLAGS initialization in this PR is not needed, but it should not cause problems with the build.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@justsmth justsmth requested a review from a team as a code owner April 23, 2024 16:27
@justsmth justsmth marked this pull request as draft April 26, 2024 12:45
@justsmth
Copy link
Contributor Author

My upstream PR to address this was merged. I would expect this fix to appear in the next (1.0.96?) release of cc.

I'll leave this PR in draft until the upstream fix is released.

@justsmth justsmth changed the title Use CFLAGS for include dirs [DRAFT] Use CFLAGS for include dirs Apr 26, 2024
@justsmth justsmth closed this May 1, 2024
@justsmth justsmth deleted the cflags-include-dirs branch August 28, 2024 17:08
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