[bazel] Make TargetParser depend on config to fix --features=layering_check
authorFangrui Song <i@maskray.me>
Thu, 22 Dec 2022 06:59:36 +0000 (22:59 -0800)
committerFangrui Song <i@maskray.me>
Thu, 22 Dec 2022 06:59:36 +0000 (22:59 -0800)
While here, apply `buidifier`.

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

index 70854fb..a72eeca 100644 (file)
@@ -1074,13 +1074,14 @@ cc_library(
     hdrs = glob([
         "include/llvm/TargetParser/*.h",
     ]),
+    copts = llvm_copts,
+    includes = ["include"],
     textual_hdrs = glob([
         "include/llvm/TargetParser/*.def",
     ]),
-    includes = ["include"],
-    copts = llvm_copts,
     deps = [
         ":Support",
+        ":config",
     ],
 )