Skip to content

Commit cecda02

Browse files
authored
site/build: Rebuild cleanups (#512)
Signed-off-by: Ryan Northey <[email protected]>
1 parent 0d0c7f7 commit cecda02

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@ build --action_env=BUILD_DOCS_SHA
1515
build --jobs=HOST_CPUS*.8
1616
build --verbose_failures
1717

18+
common:debug --announce_rc
19+
common:debug -s
20+
common:debug --verbose_failures
21+
common:debug --sandbox_debug
22+
1823
try-import %workspace%/repo.bazelrc
1924
try-import %workspace%/user.bazelrc

rebuild.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ CURRENT_DIR="$(get_realpath $(dirname "${BASH_SOURCE[0]}"))"
2020
BUILD_SCRIPT="${CURRENT_DIR}/build-website.sh"
2121

2222

23+
if [[ -n "$DEBUG" ]]; then
24+
BAZEL_BUILD_OPTIONS+=" --config=debug"
25+
fi
26+
27+
2328
download_script () {
2429
if [[ -e "$REBUILD" ]]; then
2530
echo "Using cached watch.sh ($REBUILD)"

0 commit comments

Comments
 (0)