Modularize driver subcommands and prune unused dependencies (#7658)

- Subdivide toolchain/driver:driver into granular subcommand targets
(compile_subcommand, format_subcommand, lld_subcommand, etc.) to enable
independent compilation and linking.
- Decouple Target and TargetMachine options from driver headers.
- Prune unused direct dependencies across toolchain BUILD files.

Assisted-by: Antigravity with Gemini
This commit is contained in:
Chandler Carruth authored and GitHub committed 2026-08-20 13:32:46 +00:00
1 parent 9c486de2de
commit 631f8fb6d2
10 files changed
+298 -93

No files matched your search

-4
View File
@@ -4,10 +4,6 @@
#include "toolchain/driver/driver_subcommand.h"
#include "llvm/TargetParser/Host.h"
#include "llvm/TargetParser/Triple.h"
#include "toolchain/driver/lld_runner.h"
namespace Carbon {
auto DriverSubcommand::TestAndDiagnoseIfFuzzingExternalLibraries(