features

package
v0.0.0-...-3de72e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package features defines features enabled conditionally via flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// CleanIncludePaths enables the cleaning of include paths, which
	// involves checking for absolute paths and making them relative
	// to the working directory.
	// It is temporary feature for nest build. b/157442013
	CleanIncludePaths bool

	// ExperimentalCacheMissRate is the cache miss rate simulated by
	// reproxy in an experimental build. Not to be used for production.
	ExperimentalCacheMissRate int

	// ExperimentalGomaDepsCache enables using the reproxy deps cache
	// with gomaIP instead of goma's deps cache. This has no effect on
	// clangscandeps
	ExperimentalGomaDepsCache bool

	// ExperimentalSysrootDoNotUpload disables upload of the files/directories
	// under the directory specified by the --sysroot flag.
	ExperimentalSysrootDoNotUpload bool

	// ExperimentalExitOnStuckActions shutdowns reproxy with exit code 1 if rewrapper's command
	// didn't finish within 2*reclient_timeout. This is meant to generate the call stack when
	// closing reproxy to pin down where the execution gets stuck
	//TODO(b/284246561) Remove once we have a confirmation where action execution gets stuck
	ExperimentalExitOnStuckActions bool
}

Config is the feature configuration in use.

func GetConfig

func GetConfig() *Config

GetConfig retrieves the singleton instance of the features config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL