mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 09:45:50 +01:00
This layer allows runtimes to be built on-demand but cached in a consistent and re-usable location on the system. It handles careful filesystem operations to ensure consistency even in the face of multiple versions and build configurations. This addresses a number of TODOs from the initial runtimes building on-demand, and sets the stage to scale up to more runtimes. This doesn't switch on-demand runtimes to be on by default, I wanted to wait and make that change as a separate step. --------- Co-authored-by: Geoff Romer <gromer@google.com>
15 lines
881 B
Plaintext
15 lines
881 B
Plaintext
// 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
|
|
//
|
|
// ARGS: --include-diagnostic-kind --runtimes-cache=/a/b/c/does/not/exist compile --output=%t %s
|
|
//
|
|
// Diagnostic contains non-portable filesystem error text.
|
|
// NOAUTOUPDATE
|
|
// TIP: To test this file alone, run:
|
|
// TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/driver/testdata/fail_bad_runtimes_cache.carbon
|
|
// TIP: To dump output, run:
|
|
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/driver/testdata/fail_bad_runtimes_cache.carbon
|
|
// CHECK:STDERR: error: Calling `openat` on '/a/b/c/does/not/exist' relative to 'AT_FDCWD' during DirRef::OpenDir failed: {{.*}} [DriverRuntimesCacheInvalid]
|
|
// CHECK:STDERR:
|