From b8174837cb05970310a288c0b1081a1b38ba2da3 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Thu, 27 May 2021 13:39:15 -0700 Subject: [PATCH] Add instructions on toolchain use to README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 9295b83..c4ea0bc 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,19 @@ cc_library( ) ``` +# Using the rules_cc toolchain + +If you'd like to use the cc toolchain defined in this repo add this to +your WORKSPACE after you include rules_cc: + +```bzl +load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies", "rules_cc_toolchains") + +rules_cc_dependencies() + +rules_cc_toolchains() +``` + # Migration Tools This repository also contains migration tools that can be used to migrate your