From 0046a1f198806dfa9b5d3e40754bb5aa01358a4d Mon Sep 17 00:00:00 2001 From: Dimi Shahbaz <18686460+dshahbaz@users.noreply.github.com> Date: Mon, 15 May 2023 20:38:37 -0700 Subject: [PATCH] Fix cquery example text by using a cc_binary as tool The previous example used a `cc_library` as the `tool` in a `genrule` which is odd. Improve the docs by using a `cc_binary` here. Closes #18395. PiperOrigin-RevId: 532310565 Change-Id: Ieff8b4d29e1fd44e79596f3ff62a48ab9a72b0d9 --- site/en/query/cquery.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/en/query/cquery.md b/site/en/query/cquery.md index 137ed690d35981..a5dcb64df257a5 100644 --- a/site/en/query/cquery.md +++ b/site/en/query/cquery.md @@ -209,8 +209,9 @@ genrule( cmd = "$(locations :tool) $< >$@", tools = [":tool"], ) -cc_library( +cc_binary( name = "tool", + srcs = ["tool.cpp"], )