[question] Cross-compilation with SCons and tool_requires
See original GitHub issueI am trying to setup cross-compilation with SCons where Conan provides the cross-compiler as a binary package. So, I have created a cross-compiler package which works fine with CMAKE when I add it as tool_requires and set the correct host profile.
For SCons however I am not sure how I can add the location of the cross-compiler binaries to the build environment.
The SConscript_conan
file does not contain anything regarding the packages installed via tool_requires. I would expect that they show up, so that I can add the BINPATH
to the SCons environment. I can’t add the pakckage as normal requires because then the build and host environments don’t match anymore.
Does anyone have a suggestion what the recommend approach is for cross-compilation with SCons?
- I’ve read the CONTRIBUTING guide.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Yes, for example something like:
The nice things about the new integrations:
[buildenv]
and the dependenciesself.buildenv_info
(inpackage_info()
of the dependencies)Interesting I didn’t know about this. Thanks.
If I understand it correctly, I should be able to prepare an environment file with only the few variables/paths I actually need. And the structure can be kept quite simple, so I can read it with Python standard functions. Neat.