Files
carbon-lang/core/BUILD
T
Jon Ross-Perkins 6311552fcc Generate and use a manifest for prelude files. (#4291)
This removes the directory crawl because bazel doesn't remove files from
execroot when the rule generating them would no longer generate them.

Fixes #4288
2024-09-10 20:59:49 +00:00

30 lines
739 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("manifest.bzl", "manifest")
# Raw prelude files.
filegroup(
name = "prelude_files",
srcs = ["prelude.carbon"] + glob(["prelude/**/*.carbon"]),
)
# A list of prelude inputs.
# This is consumed by //toolchain/install:install_paths.
manifest(
name = "prelude_manifest",
srcs = [":prelude_files"],
out = "prelude_manifest.txt",
)
# All files for the toolchain install.
filegroup(
name = "prelude",
srcs = [
":prelude_files",
":prelude_manifest.txt",
],
visibility = ["//visibility:public"],
)