Files
carbon-lang/toolchain/source/BUILD
T
Chandler Carruth 631f8fb6d2 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
2026-08-20 13:32:46 +00:00

33 lines
893 B
Python

# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("//bazel/cc_rules:defs.bzl", "cc_library", "cc_test")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "source_buffer",
srcs = ["source_buffer.cpp"],
hdrs = ["source_buffer.h"],
deps = [
"//toolchain/diagnostics:emitter",
"//toolchain/diagnostics:file_diagnostics",
"@llvm-project//llvm:Support",
],
)
cc_test(
name = "source_buffer_test",
size = "small",
srcs = ["source_buffer_test.cpp"],
deps = [
":source_buffer",
"//common:check",
"//testing/base:gtest_main",
"//toolchain/diagnostics:emitter",
"@googletest//:gtest",
"@llvm-project//llvm:Support",
],
)