Bazel跨平台编译
教程
cpp
stage1
先编译
1
(base) PS C:\Users\yuy4o\Desktop\BazelTutorial\cpp-tutorial\stage1\main> bazel.exe build hello-world
再运行
1
(base) PS C:\Users\yuy4o\Desktop\BazelTutorial\cpp-tutorial\stage1\bazel-bin\main> .\hello-world.exe
stage2
直接执行
1
(base) PS C:\Users\yuy4o\Desktop\BazelTutorial\cpp-tutorial\stage2> bazel run //main:hello-world
stage3
直接执行
1
(base) PS C:\Users\yuy4o\Desktop\BazelTutorial\cpp-tutorial\stage3> bazel run //main:hello-world
清理生成文件
1
(base) PS C:\Users\yuy4o\Desktop\BazelTutorial\cpp-tutorial\stage3> bazel clean --expunge
java
1
(base) PS C:\Users\yuy4o\Desktop\BazelTutorial\java-tutorial> bazel run runner
gtest
1
(base) PS C:\Users\yuy4o\Desktop\BazelTutorial\main> bazel run hello_test
This post is licensed under CC BY 4.0 by the author.
Comments powered by Disqus.