-
Notifications
You must be signed in to change notification settings - Fork 13
/
user_build
executable file
·36 lines (27 loc) · 975 Bytes
/
user_build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
# bazel_wrapper is a bootrapping bazel with no extra strings attached.
# This script provides a few extra (and necessary) flags.
# Ideally, I would like calling bazel_wrapper directly to work when building the whole repo.
# The goal would be to have this script vall bazel_wrapper directly with no extra flags.
# Until I figure out how to set the correct default flags, there may be some extra flags
# automatically added here
# toolchains to try:
# --crosstool_top=@co_vsco_bazel_toolchains//tools/cpp:default-toolchain
# --crosstool_top=@llvm_toolchain//:toolchain
#--noshow_progress \
# quiet vs loud on errors:
# --verbose_failures
#--keep_going \
#--sandbox_debug
set -euo pipefail
#--sandbox_debug \
#--verbose_failures \
#--sandbox_debug \
#--verbose_failures \
#--toolchain_resolution_debug \
#--strategy=CppLink=standalone \
#--strategy=CppCompile=standalone \
#--experimental_allow_tags_propagation \
./bazel_wrapper \
build \
"$@"