[bazel][clang] Port #167374: split clang options/driver (#167387)

This commit is contained in:
Jordan Rupprecht 2025-11-10 14:56:59 -06:00 committed by GitHub
parent 826cadd562
commit 17e26411f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1231,6 +1231,7 @@ cc_library(
":format",
":frontend",
":lex",
":options",
":rewrite",
":support",
":tooling_core",
@ -1507,6 +1508,19 @@ gentbl_cc_library(
deps = ["//llvm:OptParserTdFiles"],
)
cc_library(
name = "options",
srcs = glob(["lib/Options/*.cpp"]),
hdrs = glob(["include/clang/Options/*.h"]),
includes = ["include"],
deps = [
":basic",
":driver_options_inc_gen",
":static_analyzer_checkers_gen",
"//llvm:Option",
],
)
cc_library(
name = "driver",
srcs = glob(
@ -1544,6 +1558,7 @@ cc_library(
":config",
":driver_options_inc_gen",
":lex",
":options",
":parse",
":static_analyzer_checkers_gen",
"//llvm:BinaryFormat",
@ -1700,6 +1715,7 @@ cc_library(
":driver_options_inc_gen",
":edit",
":lex",
":options",
":parse",
":sema",
":serialization",
@ -1769,6 +1785,7 @@ cc_library(
":frontend",
":frontend_tool",
":lex",
":options",
":parse",
":sema",
":serialization",
@ -2001,6 +2018,7 @@ cc_library(
":extract_api",
":frontend",
":frontend_rewrite",
":options",
":static_analyzer_frontend",
"//llvm:Option",
"//llvm:Support",
@ -2176,6 +2194,7 @@ cc_library(
":frontend_rewrite",
":frontend_tool",
":lex",
":options",
":parse",
":sema",
":serialization",
@ -2258,6 +2277,7 @@ cc_binary(
":driver",
":frontend",
":frontend_rewrite",
":options",
":serialization",
":static_analyzer_frontend",
":tooling",