Skip to content

Commit f530eee

Browse files
authored
[bazel] Fix minor buildifier warnings (NFC) (#86566)
1 parent 25bcdab commit f530eee

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

utils/bazel/llvm-project-overlay/llvm/BUILD.bazel

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,15 +623,15 @@ cc_library(
623623
srcs = [
624624
"utils/TableGen/Common/GlobalISel/CodeExpander.cpp",
625625
],
626-
hdrs = glob([
626+
hdrs = [
627627
# We have to include these headers here as well as in the `hdrs` below
628628
# to allow the `.cpp` files to use file-relative-inclusion to find
629629
# them, even though consumers of this library use inclusion relative to
630630
# `utils/TableGen` with the `strip_includes_prefix` of this library.
631631
# This mixture appears to be incompatible with header modules.
632632
"utils/TableGen/Common/GlobalISel/CodeExpander.h",
633633
"utils/TableGen/Common/GlobalISel/CodeExpansions.h",
634-
]),
634+
],
635635
copts = llvm_copts,
636636
features = ["-header_modules"],
637637
strip_include_prefix = "utils/TableGen",
@@ -665,10 +665,11 @@ cc_binary(
665665
# listed here. MC uses headers produced by tablegen, so it cannot be a
666666
# regular dependency.
667667
"include/llvm/MC/*.h",
668-
"include/llvm/TargetParser/SubtargetFeature.h",
669668
],
670669
exclude = ["utils/TableGen/Common/GlobalISel/CodeExpander.cpp"],
671-
),
670+
) + [
671+
"include/llvm/TargetParser/SubtargetFeature.h",
672+
],
672673
copts = llvm_copts,
673674
includes = ["utils/TableGen"],
674675
stamp = 0,

utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,11 @@ cc_test(
357357
[
358358
"IR/*.cpp",
359359
"IR/*.h",
360-
"Support/KnownBitsTest.h",
361360
],
362361
allow_empty = False,
363-
),
362+
) + [
363+
"Support/KnownBitsTest.h",
364+
],
364365
shard_count = 20,
365366
deps = [
366367
"//llvm:Analysis",

utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8197,8 +8197,8 @@ cc_library(
81978197
deps = [
81988198
":ConversionPassIncGen",
81998199
":EmitCDialect",
8200-
":MemRefDialect",
82018200
":IR",
8201+
":MemRefDialect",
82028202
":Pass",
82038203
":Support",
82048204
":TransformUtils",

0 commit comments

Comments
 (0)