mirror of
https://github.com/google/benchmark.git
synced 2024-12-28 05:20:14 +08:00
e45585a4b8
* Change nanobind linkage to response file approach This change needs https://github.com/bazelbuild/bazel/pull/18952 to be merged first. Fixes macOS linkage of GBM's nanobind bindings on macOS by supplying a linker response file instead of `-undefined dynamic_lookup`. The latter has since been deprecated on macOS. * Fix bazel_skylib checksum, bump skylib version in MODULE.bazel * Bump Bazel to version 6.4.0 for linker response file support
14 lines
424 B
Bash
14 lines
424 B
Bash
if ! bazel version; then
|
|
arch=$(uname -m)
|
|
if [ "$arch" == "aarch64" ]; then
|
|
arch="arm64"
|
|
fi
|
|
echo "Installing wget and downloading $arch Bazel binary from GitHub releases."
|
|
yum install -y wget
|
|
wget "https://github.com/bazelbuild/bazel/releases/download/6.4.0/bazel-6.4.0-linux-$arch" -O /usr/local/bin/bazel
|
|
chmod +x /usr/local/bin/bazel
|
|
else
|
|
# bazel is installed for the correct architecture
|
|
exit 0
|
|
fi
|