Skip to content

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