Skip to content

Pass the compilers using CMAKE_XXX_COMPILER instead of XXX env variable #59

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
Aug 27, 2024

Conversation

JAicewizard
Copy link
Contributor

Semi-unsolicited PR, below small explanation on why this is needed. Also tagging @hannes as this is one of the changes we discussed on friday WRT the getting faiss extension in the community repo.

The previous method of setting the CC and friends environment variables causes some issues with some vcpkg ports. Sometimes a port must be compiled for the host, but when the CC env variable is set, this overwrites all settings. This leads to a situation where code that must be compiled for the host architecture (eg amd64) will be compiled with an arm64 cross-compiler.

The previous method of setting the CC and friends environment variables causes some issues
with some vcpkg ports. Sometimes a port must be compiled for the host, but when the CC env
variable is set, this overwrites all settings. This leads to a situation where code that
must be compiled for the host architecture (eg amd64) will be compiled with an arm64
cross-compiler.
@samansmink
Copy link
Collaborator

Looks good to me, thanks @JAicewizard!

@samansmink samansmink merged commit 9d5363c into duckdb:main Aug 27, 2024
18 of 19 checks passed
@JAicewizard JAicewizard deleted the fix_compiler_passing branch August 27, 2024 10:05
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