Bazel BUILD文件与build/文件夹冲突 [英] Bazel BUILD files conflicts with a build/ folder

查看:230
本文介绍了Bazel BUILD文件与build/文件夹冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆