Bazel BUILD文件与build/文件夹冲突 [英] Bazel BUILD files conflicts with a build/ folder
问题描述
我正在将我的Cmake项目迁移到Bazel.我项目的根目录是一个用于运行Cmake的build
文件夹.
要迁移到 Bazel ,我需要在项目的根目录下创建一个BUILD
文件.但是,在macOS上,由于存在build
文件夹,因此无法创建它.
我可以为Bazel的BUILD
文件使用其他名称吗?还是应该删除我的build
文件夹?
Bazel还支持使用BUILD.bazel作为文件名,这应该可以解决此问题(如果同时存在BUILD.bazel和BUILD,则首选BUILD.bazel)./p>
请尝试使用它,看看是否有帮助!
I am migrating my Cmake project to Bazel. At the root of my project is a build
folder that I use to run Cmake.
To migrate to Bazel, I need to create a BUILD
file at the root of my project. However, on macOS, I cannot create it due to the presence of my build
folder.
Can I use a different name for Bazel's BUILD
files? Or should I get rid of my build
folder?
Bazel also supports using BUILD.bazel as the filename, which should resolve this issue (BUILD.bazel is preferred if both BUILD.bazel and BUILD exist).
Please try using that and see if it helps!
这篇关于Bazel BUILD文件与build/文件夹冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!