address peter's comments

This commit is contained in:
Matthew LeVan 2023-02-09 12:05:41 -05:00
parent c76f32ffe3
commit e85d00c88c
3 changed files with 23 additions and 23 deletions

View File

@ -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.
)

View File

@ -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",
)

View File

@ -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.
)