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

Set CC and CXX for cargo #138

Merged
merged 1 commit into from
Feb 6, 2022
Merged

Conversation

jschwe
Copy link
Collaborator

@jschwe jschwe commented Feb 6, 2022

Cargo build scripts may themselves build c-dependencies and may choose
the compiler by inspecting CC or CXX.
Thus we should pass the compiler that was set in CMake, or alternatively
that is set in the environment to cargo.
This allows the build script to select the same compiler.

Closes #85

Cargo build scripts may themselves build c-dependencies and may choose
the compiler by inspecting CC or CXX.
Thus we should pass the compiler that was set in CMake, or alternatively
that is set in the environment to cargo.
This allows cargo to use the same compiler.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Copy link
Collaborator

@ogoffart ogoffart left a comment

Choose a reason for hiding this comment

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

Good idea

@jschwe jschwe merged commit 0b0b182 into corrosion-rs:master Feb 6, 2022
@jschwe jschwe deleted the jschwe/set-cc branch April 3, 2022 06:17
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.

Map CMake compilers to cargo build environment variables
2 participants