blob: e0c526e94b4bf8477538eb2af4baa9e955d3728c [file] [log] [blame]
# Copyright 2021 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Ninja `restat` can lead to on-the-fly pruning of the overall action graph.
# This script transforms any command to be restat-friendly by redirecting
# outputs to a temporary location, followed by move-if-changed.
# This is suitable for both local and remote (RBE) actions.
restat_wrapper = "//build/tracer/output_cacher.py"
declare_args() {
# Set to true to make Rust compiles preserve timestamps of unchanged outputs.
restat_rust = false
# Set to true to make C++ compiles preserve timestamps of unchanged outputs.
restat_cc = false
}