Ninja
Public Types | Public Member Functions | Public Attributes | List of all members
BuildConfig Struct Reference

Options (e.g. verbosity, parallelism) passed to a build. More...

#include <build.h>

Public Types

enum  Verbosity { QUIET , NO_STATUS_UPDATE , NORMAL , VERBOSE }
 

Public Member Functions

 BuildConfig ()=default
 

Public Attributes

DepfileParserOptions depfile_parser_options
 
bool disable_jobserver_client = false
 
bool dry_run = false
 
int failures_allowed = 1
 
double max_load_average = -0.0f
 The maximum load average we must not exceed. More...
 
int parallelism = 1
 
Verbosity verbosity = NORMAL
 

Detailed Description

Options (e.g. verbosity, parallelism) passed to a build.

Definition at line 176 of file build.h.

Member Enumeration Documentation

◆ Verbosity

Enumerator
QUIET 
NO_STATUS_UPDATE 
NORMAL 
VERBOSE 

Definition at line 179 of file build.h.

Constructor & Destructor Documentation

◆ BuildConfig()

BuildConfig::BuildConfig ( )
default

Member Data Documentation

◆ depfile_parser_options

DepfileParserOptions BuildConfig::depfile_parser_options

Definition at line 193 of file build.h.

Referenced by Builder::ExtractDeps().

◆ disable_jobserver_client

bool BuildConfig::disable_jobserver_client = false

Definition at line 188 of file build.h.

◆ dry_run

bool BuildConfig::dry_run = false

◆ failures_allowed

int BuildConfig::failures_allowed = 1

Definition at line 189 of file build.h.

Referenced by Builder::Build().

◆ max_load_average

double BuildConfig::max_load_average = -0.0f

The maximum load average we must not exceed.

A negative value means that we do not have any limit.

Definition at line 192 of file build.h.

Referenced by RealCommandRunner::CanRunMore().

◆ parallelism

int BuildConfig::parallelism = 1

Definition at line 187 of file build.h.

Referenced by RealCommandRunner::CanRunMore().

◆ verbosity

Verbosity BuildConfig::verbosity = NORMAL

The documentation for this struct was generated from the following file: