.bazelrc: Change relative path to common.bazelrc

.bazelrc needs to point to %workspace%/common.bazelrc otherwise it
treats it as a relative path from CWD.

BUG=b:213616502
TEST=`bazel-5 build :all` from cros/test

Change-Id: Idb02e3e72d2284a62bd8f5066f1e48cb746f0743
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/rules_cros/+/3445306
Reviewed-by: Chris McDonald <cjmcdonald@chromium.org>
Tested-by: Chris McDonald <cjmcdonald@chromium.org>
1 file changed
tree: 6e975608739cbba520d599e6807401d12dab6601
  1. cros/
  2. .bazelrc
  3. .gitignore
  4. common.bazelrc
  5. DIR_METADATA
  6. LICENSE
  7. OWNERS
  8. README.md
  9. WORKSPACE
  10. WORKSPACE.cros
README.md

Chrome OS Bazel Rules

Overview

This repository provides common rules and configuration for Bazel projects in Chrome OS.

Usage

rules_cros is only expected to function inside the Chrome OS SDK. You may copy the following snippet into your WORKSPACE file and fix up the relative path in local_repository to point from your project to where rules_cros is checked out.

local_repository(
    name = "rules_cros",
    path = "../src/platform/rules_cros",
)

load("@rules_cros//cros:repositories.bzl", "rules_cros_dependencies")

rules_cros_dependencies()

You will also need to symlink .bazelrc in the root of your project to common.bazelrc in this repo. You can put additional settings in a file named user.bazelrc in the root of your WORKSPACE and it will automatically be imported by common.bazelrc.

Documentation

The code is this directory is experimental and under active development. Stability and functionality is not guaranteed :)