Skip to content

Commit

Permalink
fixes (bazelbuild#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliexxia authored May 15, 2020
1 parent ab1fda2 commit 87d283e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions rules/starlark_configurations/basic_build_setting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ This is an example of defining and instantiating your own build setting from scr
- Defining the build setting rule (`temperature`) and creating an instance of it (`:coffee-temp`)
- Accessing a build setting's value from inside another rule that cares about it

To test it out, run the following:
To test it out, cd to this directory and run the following:
```
$ bazel build //:today => will print "HOT"
$ bazel build //:today --//:coffee-temp=ICED => will print "ICED"
$ bazel build :today # => "HOT"
$ bazel build :today --//starlark_configurations/basic_build_setting:coffee-temp=ICED # => "ICED"
```
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is an example of how to write and use a transition to change a native flag

To test it out, cd to this directory and run the following:
```
$ bazel build :foo // => "--cpu=x86"
$ bazel build :bar // => "--cpu=arm"
$ bazel build :baz // => "--cpu=k8"
$ bazel build :foo # => "--cpu=x86"
$ bazel build :bar # => "--cpu=arm"
$ bazel build :baz # => "--cpu=k8"
```

0 comments on commit 87d283e

Please sign in to comment.