From e85d00c88c5d0ceea2f7019b4bb596b3d82d4865 Mon Sep 17 00:00:00 2001 From: Matthew LeVan Date: Thu, 9 Feb 2023 12:05:41 -0500 Subject: [PATCH] address peter's comments --- BUILD.bazel | 23 ----------------------- WORKSPACE.bazel | 1 + bazel/BUILD.bazel | 22 ++++++++++++++++++++++ 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 1c311a30f7..80d7445c27 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -4,8 +4,6 @@ load("//bazel:common_settings.bzl", "string_flag") # OS-CPU CONFIG SETTINGS # -load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands") - config_setting( name = "linux_aarch64", constraint_values = [ @@ -181,24 +179,3 @@ alias( name = "urbit", actual = "//pkg/vere:urbit", ) - -# gazelle:exclude external - -refresh_compile_commands( - name = "refresh_compile_commands", - - # Specify the targets of interest. - # For example, specify a dict of targets and any flags required to build. - targets = [ - "//pkg/ent", - "//pkg/noun", - "//pkg/ur", - "//pkg/urcrypt", - "//pkg/vere:urbit", - ], - # No need to add flags already in .bazelrc. They're automatically picked up. - # If you don't need flags, a list of targets is also okay, as is a single target string. - # Wildcard patterns, like //... for everything, *are* allowed here, just like a build. - # As are additional targets (+) and subtractions (-), like in bazel query https://docs.bazel.build/versions/main/query.html#expressions - # And if you're working on a header-only library, specify a test or binary target that compiles it. -) diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 61b73d8f5c..146df200cb 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -359,6 +359,7 @@ versioned_http_archive( versioned_http_archive( name = "hedron_compile_commands", strip_prefix = "bazel-compile-commands-extractor-{version}", + sha256 = "d7ba7708816132f86f02864b9dba0c5abf249cc0fb035a34c430e4e538c87867", url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/{version}.tar.gz", version = "d3afb5dfadd4beca48bb027112d029f2d34ff0a0", ) diff --git a/bazel/BUILD.bazel b/bazel/BUILD.bazel index e69de29bb2..bb93f5d26c 100644 --- a/bazel/BUILD.bazel +++ b/bazel/BUILD.bazel @@ -0,0 +1,22 @@ +load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands") + +# gazelle:exclude external + +refresh_compile_commands( + name = "refresh_compile_commands", + + # Specify the targets of interest. + # For example, specify a dict of targets and any flags required to build. + targets = [ + "//pkg/ent", + "//pkg/noun", + "//pkg/ur", + "//pkg/urcrypt", + "//pkg/vere:urbit", + ], + # No need to add flags already in .bazelrc. They're automatically picked up. + # If you don't need flags, a list of targets is also okay, as is a single target string. + # Wildcard patterns, like //... for everything, *are* allowed here, just like a build. + # As are additional targets (+) and subtractions (-), like in bazel query https://docs.bazel.build/versions/main/query.html#expressions + # And if you're working on a header-only library, specify a test or binary target that compiles it. +) \ No newline at end of file