-
Notifications
You must be signed in to change notification settings - Fork 25
/
.bazelrc
25 lines (20 loc) · 919 Bytes
/
.bazelrc
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
# SPDX-FileCopyrightText: 2023 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0
# By default, build optimized
build --compilation_mode=opt
# add frame pointers to make tracing the stack of a crash easier
build --@rules_rust//:extra_rustc_flag=-Cforce-frame-pointers
# Use toolchain resolution to find the cc toolchain.
# This is required to ensure cross compilation operates with the correct toolchain.
build --incompatible_enable_cc_toolchain_resolution
build --platforms="@rules_rivos//platforms:riscv64-none"
test --platforms=
run --platforms=
build --@rules_rust//rust/toolchain/channel=nightly
# Rust Clippy configuration:
# - Deny on missing docs
build --@rules_rust//:clippy_flags=-Dmissing-docs,-Dwarnings
# Use the workspace status feature to include the git commit in the build:
# https://bazel.build/docs/user-manual#workspace-status
build --workspace_status_command=bazel/workspace_status_command.sh