mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 20:22:39 +00: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
27 lines
616 B
Python
27 lines
616 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")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
filegroup(
|
|
name = "testdata",
|
|
srcs = glob(["testdata/**/*.carbon"]),
|
|
)
|
|
|
|
cc_library(
|
|
name = "format",
|
|
srcs = [
|
|
"format.cpp",
|
|
"formatter.cpp",
|
|
"formatter.h",
|
|
],
|
|
hdrs = ["format.h"],
|
|
deps = [
|
|
"//common:ostream",
|
|
"//toolchain/lex:tokenized_buffer",
|
|
],
|
|
)
|