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
2026-08-20 13:32:46 +00:00
committed by GitHub
parent 9c486de2de
commit 631f8fb6d2
10 changed files with 298 additions and 93 deletions
-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(