[bazel] Port TargetParser f09cf34d00625e57dea5317a3ac0412c07292148
authorFangrui Song <i@maskray.me>
Tue, 20 Dec 2022 18:30:05 +0000 (10:30 -0800)
committerFangrui Song <i@maskray.me>
Tue, 20 Dec 2022 18:30:05 +0000 (10:30 -0800)
Moving files into a new target :TargetParser is left as an exercise.

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

index 1953e7c..23a8e42 100644 (file)
@@ -186,6 +186,10 @@ cc_library(
         "lib/Support/*.inc",
         # To avoid a dependency cycle.
         "include/llvm/Option/*.h",
+        # FIXME Move to :TargetParser
+        "lib/TargetParser/**/*.cpp",
+        "lib/TargetParser/**/*.h",
+        "lib/TargetParser/**/*.inc",
     ]) + select({
         "@bazel_tools//src/conditions:windows": glob([
             "lib/Support/Windows/*.h",
@@ -216,6 +220,9 @@ cc_library(
     hdrs = glob([
         "include/llvm/Support/**/*.h",
         "include/llvm/ADT/*.h",
+        # FIXME Move to :TargetParser
+        "include/llvm/TargetParser/*.def",
+        "include/llvm/TargetParser/*.h",
     ]) + [
         "include/llvm-c/Core.h",
         "include/llvm-c/DataTypes.h",