bazel - 配置环境
问题描述
bazel build --config cxx20 --config opts ...
我想默认为--config cxx20 --config opts
. 但是我无法更改 .bazelrc 因为其他用户使用不同的配置。是否有用于配置的环境变量BAZEL_CXXOPTS
?
export BAZEL_???="--config cxx20 --config opts"
解决方案
您还可以考虑在 shell 中使用别名,例如
alias bb='bazel build --config cxx20 --config opts'
推荐阅读
- java - 将公钥证书从一个客户端应用程序传输到另一个客户端应用程序
- swift - 使用 URLsession 更新自定义类的属性
- c# - 如何从基本 xaml “继承”
- android - 在arcore中查找锚定节点与相机当前位置之间的角度
- javascript - PHP:将文件传递给函数,而不回显到 html
- html - 我想将 html 元素并排放置在一行中
- java - 如何使用流限制用户在控制台中仅输入 10 个字符
- webkitspeechrecognition - Annyang causes chrome ask to allow microphone before it starts
- android - flowlistview refreshing dosent stop
- reactjs - JSX 元素类型没有构造或调用签名