mirror of https://github.com/bazelbuild/rules_cc
Replace Python with Starlark.
This commit is contained in:
parent
6600161826
commit
2d1f48d061
|
@ -15,7 +15,7 @@ For the list of C++ rules, see the Bazel
|
|||
There is no need to use rules from this repository just yet. If you want to use
|
||||
`rules_cc` anyway, add the following to your `WORKSPACE` file:
|
||||
|
||||
```python
|
||||
```starlark
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
|
||||
http_archive(
|
||||
|
@ -27,7 +27,7 @@ http_archive(
|
|||
|
||||
Then, in your `BUILD` files, import and use the rules:
|
||||
|
||||
```python
|
||||
```starlark
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
|
||||
cc_library(
|
||||
|
|
Loading…
Reference in New Issue