You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pin the Bazel version used and executed by Bazelisk to guarantee that
TFLM is built with a specified version of Bazel.
When the latest release of Bazel went from version 6.3 to 7.0, our
builds, which were set to follow the latest release (because there was
no .bazelversion), were disrupted due to incompatibilities. By pinning
the Bazel version, we prevent such surprises in the future.
Revise the developer documentation to mandate the use of Bazelisk.
According to [Bazelisk documentation](https://github.com/bazelbuild/bazelisk/blob/9d3fc7d5e356071d2d40b75e69694a0c124e5e33/README.md#ensuring-that-your-developers-use-bazelisk-rather-than-bazel),
direct installations of bazel typically use a wrapper script which
checks .bazelversion also.
BUG=see description
@@ -143,10 +145,20 @@ Please see the [optimized kernel implementations guide](tensorflow/lite/micro/do
143
145
Please see the [new platform support guide](tensorflow/lite/micro/docs/new_platform_support.md)
144
146
for documentation on how to add TFLM support for your particular platform.
145
147
148
+
# Development Environment
146
149
147
-
# Development Workflow Notes
150
+
We support amd64-architecture development and testing on Ubuntu 22.04, although
151
+
other OSes may work.
152
+
153
+
## Prerequisites
154
+
155
+
TFLM's primary build system is [Bazel](https://bazel.build). Add
156
+
[Bazelisk](https://github.com/bazelbuild/bazelisk) as the `bazel` executable in
157
+
your PATH ([e.g., copy it to `/usr/local/bin/bazel`](ci/install_bazelisk.sh)) to
158
+
automatically download and run the correct Bazel version as specified in
159
+
`//.bazelversion`.
148
160
149
-
## Initial Setup
161
+
## Recommendations
150
162
151
163
Below are some tips that might be useful and improve the development experience.
152
164
@@ -156,7 +168,9 @@ Below are some tips that might be useful and improve the development experience.
156
168
* Code search the [TfLite Micro codebase](https://sourcegraph.com/github.com/tensorflow/tflite-micro@main)
157
169
on Sourcegraph. And optionally install the [plugin that enables GitHub integration](https://docs.sourcegraph.com/integration/github#github-integration-with-sourcegraph).
158
170
159
-
* Install [bazel](ci/install_bazelisk.sh) and [buildifier](ci/install_buildifier.sh).
0 commit comments