summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2025-11-10 14:56:59 -0600
committerGitHub <noreply@github.com>2025-11-10 20:56:59 +0000
commit17e26411f8b8a404e07a628ba17986a2392c1f79 (patch)
tree285ebd645e338dbfcdff887153becbf8c89b789e /utils
parent826cadd5628413a0a92722e0382ba9d968911acc (diff)
[bazel][clang] Port #167374: split clang options/driver (#167387)
Diffstat (limited to 'utils')
-rw-r--r--utils/bazel/llvm-project-overlay/clang/BUILD.bazel20
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
index 36b71dd49ef1..deb56dc0957e 100644
--- a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
@@ -1231,6 +1231,7 @@ cc_library(
":format",
":frontend",
":lex",
+ ":options",
":rewrite",
":support",
":tooling_core",
@@ -1508,6 +1509,19 @@ gentbl_cc_library(
)
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",