2021-11-08 14:20:26 +00:00
|
|
|
# Bazel settings that apply to this repository.
|
2023-02-17 00:59:21 +00:00
|
|
|
# Settings that apply only to CI are in .aspect/bazelrc/ci.bazelrc
|
|
|
|
|
2023-02-17 22:34:06 +00:00
|
|
|
# Import Aspect bazelrc presets
|
2023-02-17 00:59:21 +00:00
|
|
|
import %workspace%/.aspect/bazelrc/convenience.bazelrc
|
|
|
|
import %workspace%/.aspect/bazelrc/correctness.bazelrc
|
|
|
|
import %workspace%/.aspect/bazelrc/performance.bazelrc
|
|
|
|
import %workspace%/.aspect/bazelrc/debug.bazelrc
|
|
|
|
import %workspace%/.aspect/bazelrc/javascript.bazelrc
|
|
|
|
|
2023-02-17 22:34:06 +00:00
|
|
|
# Use a try-import for Bazel 6 settings since this repository is also tested against Bazel 5 on CI
|
2023-02-17 00:59:21 +00:00
|
|
|
try-import %workspace%/.aspect/bazelrc/bazel6.bazelrc
|
2022-06-15 20:53:35 +00:00
|
|
|
|
2023-02-17 22:34:06 +00:00
|
|
|
### PROJECT SPECIFIC OPTIONS ###
|
|
|
|
|
2022-08-22 17:59:38 +00:00
|
|
|
# For testing our --stamp behavior.
|
|
|
|
# Normally users would use a --workspace_status_command with a script that calls `git describe`.
|
|
|
|
build --embed_label=v1.2.3
|
2023-05-16 23:14:50 +00:00
|
|
|
# Mock versioning command to test the --stamp behavior
|
|
|
|
build --workspace_status_command="echo BUILD_SCM_VERSION 1.2.3"
|
2022-08-22 17:59:38 +00:00
|
|
|
|
2023-01-03 20:26:51 +00:00
|
|
|
# For releasing, use --workspace_status_command and stamp
|
|
|
|
build:release --workspace_status_command "${PWD}/workspace_status.sh"
|
|
|
|
build:release -c opt --stamp
|
|
|
|
|
2023-02-17 00:59:21 +00:00
|
|
|
# Load any settings & overrides specific to the current user from `.aspect/bazelrc/user.bazelrc`.
|
|
|
|
# This file should appear in `.gitignore` so that settings are not shared with team members. This
|
|
|
|
# should be last statement in this config so the user configuration is able to overwrite flags from
|
|
|
|
# this file. See https://bazel.build/configure/best-practices#bazelrc-file.
|
|
|
|
try-import %workspace%/.aspect/bazelrc/user.bazelrc
|