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

c: fix an issue where the wrong c/cpp compiler could be set up #1162

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

sandydoo
Copy link
Member

@sandydoo sandydoo commented Apr 22, 2024

We already add stdenv, which contains all the compilers and sets up the CC and CXX env variables for each platform. Adding clang or gcc on top can result in the wrong compilers being set up for the current platform, e.g. gcc on macOS. We saw this happen when building native extensions in ruby.

I imagine this broke once we switched back to nix develop.
Also, this might fix the macos ruby tests 👀

Fixes #966.
Fixes #965.

We already add `stdenv`, which contains all the compilers and sets up
the `CC` and `CXX` env variables for each platform.
Adding `clang` or `gcc` on top can result in the wrong compilers being
set up for the current platform, e.g. gcc on macOS.
We saw this happen when building native extensions in ruby.
@sandydoo sandydoo added the bug Something isn't working label Apr 22, 2024
@domenkozar domenkozar merged commit a812bd6 into main Apr 22, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants