package b0

  1. Overview
  2. Docs
On This Page
  1. Environment
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module B00.EnvSource

Build environment.

Build environments specify the environment of tool spawns.

TODO Now that tool lookup moved to Memo, is it still worth sense to have that separate ?

Environment

Sourcetype t

The type for build environments.

Sourceval v : ?forced_env:B0_std.Os.Env.t -> B0_std.Os.Env.t -> t

v ~lookup ~forced_env env is a build environment with:

  • forced_env is environment forced on any tool despite what it declared to access, defaults to B0_std.Os.Env.empty
  • env the environment read by the tools' declared environment variables.

env e is e's available spawn environment.

Sourceval forced_env : t -> B0_std.Os.Env.t

forced_env e is e's forced spawn environment.