mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-26 13:30:30 +00:00
35 lines
1.6 KiB
Plaintext
35 lines
1.6 KiB
Plaintext
# Bazel settings that apply to this repository.
|
|
# Settings that apply only to CI are in .aspect/bazelrc/ci.bazelrc
|
|
|
|
# Import Aspect bazelrc presets
|
|
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
|
|
|
|
# Use a try-import for Bazel 6 settings since this repository is also tested against Bazel 5 on CI
|
|
try-import %workspace%/.aspect/bazelrc/bazel6.bazelrc
|
|
|
|
### PROJECT SPECIFIC OPTIONS ###
|
|
|
|
# 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
|
|
# Mock versioning command to test the --stamp behavior
|
|
build --workspace_status_command="echo BUILD_SCM_VERSION 1.2.3"
|
|
|
|
# For releasing, use --workspace_status_command and stamp
|
|
build:release --workspace_status_command "${PWD}/workspace_status.sh"
|
|
build:release -c opt --stamp
|
|
|
|
# Don't try to auto-detect the cc toolchain. We will supply a toolchain if we need one.
|
|
build --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
|
|
build --incompatible_enable_cc_toolchain_resolution
|
|
|
|
# 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
|