conan-io/conan

[question] Cross-compilation with SCons and tool_requires

Open

#11,945 创建于 2022年8月23日

在 GitHub 查看
 (5 评论) (0 反应) (1 负责人)Python (961 fork)batch import
Feedback please!complex: mediumcomponent: Buildhelp wantedtype: feature

仓库指标

Star
 (7,457 star)
PR 合并指标
 (平均合并 15天 16小时) (30 天内合并 41 个 PR)

描述

I 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?

贡献者指南