File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,20 @@ Once the project files are generated, build as normal for your platform.
75
75
76
76
## Building with Bazel
77
77
78
+ You can use [ Bazelisk] ( https://github.com/bazelbuild/bazelisk ) to manage your Bazel environment.
79
+ For Swift support, you also need Clang and [ Swift SDK] ( https://download.swift.org/ ) .
80
+
81
+ ``` sh
82
+ curl -sL --fail https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-amd64 -o bazelisk && chmod +x bazelisk
83
+ sudo apt install -y clang
84
+ SWIFT_VERSION=" 6.0.3"
85
+ curl -L https://download.swift.org/swift-${SWIFT_VERSION} -release/debian12/swift-${SWIFT_VERSION} -RELEASE/swift-${SWIFT_VERSION} -RELEASE-debian12.tar.gz | tar xz
86
+ CC=clang PATH=$PATH :$( pwd) /swift-${SWIFT_VERSION} -RELEASE-debian12/usr/bin bazel build //...
87
+ CC=clang PATH=$PATH :$( pwd) /swift-${SWIFT_VERSION} -RELEASE-debian12/usr/bin bazel test //...
88
+ ```
89
+
90
+ If you are unsure which versions to use, check our CI config at ` .bazelci/presubmit.yml ` .
91
+
78
92
## Building with VCPKG
79
93
80
94
You can download and install flatbuffers using the [ vcpkg] ( https://github.com/Microsoft/vcpkg/ ) dependency manager:
You can’t perform that action at this time.
0 commit comments