Skip to content

Commit cdda08b

Browse files
committed
[bazel] Port e3627e2
1 parent 7ea7267 commit cdda08b

File tree

1 file changed

+34
-7
lines changed

1 file changed

+34
-7
lines changed

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

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -964,19 +964,45 @@ cc_library(
964964

965965
cc_library(
966966
name = "TextAPI",
967+
srcs = glob(
968+
[
969+
"lib/TextAPI/**/*.cpp",
970+
],
971+
exclude = ["lib/TextAPI/BinaryReader/**"],
972+
),
973+
hdrs = glob(
974+
[
975+
"include/llvm/TextAPI/**/*.h",
976+
"include/llvm/TextAPI/**/*.def",
977+
"lib/TextAPI/**/*.h",
978+
],
979+
exclude = [
980+
"lib/TextAPI/BinaryReader/**",
981+
"include/llvm/TextAPI/DylibReader.h",
982+
],
983+
),
984+
copts = llvm_copts,
985+
deps = [
986+
":BinaryFormat",
987+
":Support",
988+
":TargetParser",
989+
],
990+
)
991+
992+
cc_library(
993+
name = "TextAPIBinaryReader",
967994
srcs = glob([
968-
"lib/TextAPI/**/*.cpp",
969-
]),
970-
hdrs = glob([
971-
"include/llvm/TextAPI/**/*.h",
972-
"include/llvm/TextAPI/**/*.def",
973-
"lib/TextAPI/**/*.h",
995+
"lib/TextAPI/BinaryReader/**/*.cpp",
974996
]),
997+
hdrs = ["include/llvm/TextAPI/DylibReader.h"] + glob(
998+
["lib/TextAPI/BinaryReader/**/*.h"],
999+
),
9751000
copts = llvm_copts,
9761001
deps = [
977-
":BinaryFormat",
1002+
":Object",
9781003
":Support",
9791004
":TargetParser",
1005+
":TextAPI",
9801006
],
9811007
)
9821008

@@ -5204,6 +5230,7 @@ cc_binary(
52045230
":ReadTAPIOptsTableGen",
52055231
":Support",
52065232
":TextAPI",
5233+
":TextAPIBinaryReader",
52075234
],
52085235
)
52095236

0 commit comments

Comments
 (0)