如何在bazel中包含标准路径 [英] How to include standard path in bazel
本文介绍了如何在bazel中包含标准路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的项目中,我想使用一些通过Mac上的自制软件安装的命令.不幸的是,当我通过bazel运行命令时,bazel不包含修改后的类路径.如何以最少的命令行参数和配置启用此类PATH?
In my project, I want to use some commands which are installed via homebrew on Mac. Unfortunately, bazel doesn't include my modified classpath when I run commands via it. How can I enable such PATH with minimum amount of command line parameters and configurations?
推荐答案
有一个--action_env标志,它可以指定环境变量.在此处查看更多信息: https://bazel.build/designs/2016/06/21/environment.html
There's an --action_env flag which allows to specify environment variables. See more here: https://bazel.build/designs/2016/06/21/environment.html
这篇关于如何在bazel中包含标准路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文