Bazel BUILD files conflicts with a build/ folder

北城余情 提交于 2020-01-02 04:10:09

问题


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?


回答1:


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!



来源:https://stackoverflow.com/questions/43205637/bazel-build-files-conflicts-with-a-build-folder

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!