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

Move all CC checks after setting CC/CXX vars #470

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

kdm9
Copy link
Contributor

@kdm9 kdm9 commented Feb 11, 2021

Hello,

While trying to package rmlint for the conda package manager, I came across the following issue: compiler paths and flags from os.environ are incorporated into the build environment after some checks (namely CheckCC()) execute. Therefore, if the default values of scons' CC etc. are non-functional (as in a cross-build environment where CC is named by host arch etc.), then these tests fail, aborting the build before paths to CC and CXX are read from environment variables. This simply shifts the block of code that overwrites scons' CC/CXX etc up before any checks are performed. The attached patch seems to allow successful compilation & install at least in Conda's build environment.

Best,
Kevin

@SeeSpotRun
Copy link
Collaborator

Thanks @kdm9

@SeeSpotRun SeeSpotRun merged commit 094fbd5 into sahib:master Mar 8, 2021
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