mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 20:20:10 +01:00
- 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
33 lines
893 B
Python
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",
|
|
],
|
|
)
|