File tree 4 files changed +40
-13
lines changed
4 files changed +40
-13
lines changed Original file line number Diff line number Diff line change 1
1
# bzl7
2
2
3
- This project can execute various C++ and python targets with different gcc toolchains using bazel 7.
4
-
5
- Check the ` .bazelrc ` file to see what configurations are supported.
6
-
7
- ## Go
8
-
9
- We use Gazelle to generate the ` BUILD.bazel ` files for this project. Simply do:
10
- ```
11
- # generates the BUILD files
12
- bazel run gazelle
13
- # executes the binary
14
- bazel run //go/gazelle
15
- ```
3
+ This is the root of the ` bzl7 ` project. Check each language folder for various examples.
Original file line number Diff line number Diff line change
1
+ # cpp
2
+
3
+ This project can execute various C++ and python targets with different gcc toolchains using bazel 7.
4
+
5
+ Check the ` .bazelrc ` file to see what configurations are supported.
6
+
7
+ For the ` boost ` example, we rely on Nix providing the dependencies.
Original file line number Diff line number Diff line change
1
+ # go
2
+
3
+ We use Gazelle to generate the ` BUILD.bazel ` files for this project. Simply do:
4
+ ```
5
+ # generates the BUILD files
6
+ bazel run gazelle
7
+ # executes the binary
8
+ bazel run //go/gazelle
9
+ ```
Original file line number Diff line number Diff line change
1
+ # python
2
+
3
+ ## hello world
4
+
5
+ It is possible to execute this script using various toolchains:
6
+ ```
7
+ bazel run --config=python310 //python/hello_world:main
8
+ bazel run --config=python311 //python/hello_world:main
9
+ bazel run --config=python312 //python/hello_world:main
10
+ ```
11
+
12
+ ## pip example
13
+ To update the requirements file, simply run:
14
+ ```
15
+ bazel run //python/pip:python_requirements.update
16
+ ```
17
+
18
+ Now you may execute:
19
+ ```
20
+ bazel run //python/pip:main
21
+ ```
22
+
23
+ Note only the default toolchain is supported currently.
You can’t perform that action at this time.
0 commit comments