File: bazel-generic

package info (click to toggle)
bazel-bootstrap 4.2.3%2Bds-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 85,476 kB
  • sloc: java: 721,710; sh: 55,859; cpp: 35,359; python: 12,139; xml: 295; objc: 269; makefile: 113; ansic: 106; ruby: 3
file content (12 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
set -e

bazel clean --expunge --define=distribution=debian
# Non-amd64 architectures are having issues with the following error:
# java.lang.UnsatisfiedLinkError: 'int com.google.devtools.build.lib.unix.ProcessUtils.getpid()'
# Disabling the next line for non-amd64 until newer Bazel versions fix this
if [[ $(dpkg --print-architecture) == "amd64" ]]; then
    bazel info --define=distribution=debian
fi
bazel build --define=distribution=debian --verbose_failures \
 //examples/gen:genrule