bazel - Bazel 通过一次调用构建多个目标架构?
问题描述
是否可以将 bazel 目标与特定的工具链/平台相关联?
我bazel build ...
想让 bazel 为许多不同的目标架构构建相同的 cc_library。并且还跳过特定目标架构的一些目标。
显然,如果我使用不同的标志多次运行 bazel 并标记要忽略的测试,我可以实现这一点。但这不是很方便。
解决方案
Unless something had recently changed, I am afraid you are (at least at the moment) out of luck on this one. My understanding of the documentation (and recollection of when I was poking around this area) is that bazel will in the end match one (or no) toolchain for a given toolchain type (and in case of multiple possible matches pick the first one in the list). Hence you won't be able to define one rule for one target matching multiple toolchains for a given single build.
推荐阅读
- bash - 在远程服务器上运行 bash 脚本
- python - 如何在 Heroku 上使用 poppler buildpack
- amazon-web-services - 我应该将我的 S3 存储桶公开以用于静态站点托管吗?
- python - 带有关键字 arg 默认值的 mypy “参数默认值不兼容”
- laravel - toArray() 中缺少延迟加载的关系
- angular - Angular BehaviorSubject 服务在其他组件中没有改变
- character - 如何修复不匹配的输入 x 期望 y
- winapi - Win32:异步捕获桌面截图
- jmx - 无法通过 Wildfly swarm/thorntail 中的 jmx 访问数据源 mbean
- c# - 从 CollectionView 绑定 SelectedItem