compiler/stage2_l0/src/build_info.l0
Module build_info
Overview Symbols grouped by source file: compiler/stage2_l0/src/build_info.l0
Module: build_info
Source: compiler/stage2_l0/src/build_info.l0 Language: Dea/L0
Imports / Includes
std.text
Symbols
- build_info_has_embedded_version
- build_info_build_id
- build_info_build_time
- build_info_commit
- build_info_host
- build_info_compiler
- build_info_release_version
- build_info_identity_with_version
- build_info_version_text
Function build_info_has_embedded_version
func build_info_has_embedded_version() -> bool
Report whether this compiler binary has embedded build provenance.
Source-tree and raw self-hosted builds stay on the static fallback path.
Returns: true when an artifact-producing flow embedded provenance.
Function build_info_build_id
func build_info_build_id() -> string
Return the recorded build identifier.
Returns: Build identifier, or "unknown" for fallback builds.
Function build_info_build_time
func build_info_build_time() -> string
Return the recorded UTC build timestamp rendered for --version .
Returns: Build time text, or "unknown" for fallback builds.
Function build_info_commit
func build_info_commit() -> string
Return the formatted commit text for --version .
Returns: Full git commit hash, optionally suffixed with +dirty, or "unknown" for fallback builds.
Function build_info_host
func build_info_host() -> string
Return the recorded host platform string.
Returns: Host platform string, or "unknown" for fallback builds.
Function build_info_compiler
func build_info_compiler() -> string
Return the recorded compiler banner for --version .
Returns: First line of <compiler> --version, or "unknown" for fallback builds.
Function build_info_release_version
func build_info_release_version() -> string
Return the recorded release version string.
Returns: Release version such as "1.2.3" or "dev-abc1234", or "unknown" for fallback builds.
Function build_info_identity_with_version
func build_info_identity_with_version(identity: string) -> string
Return the compiler identity with version suffix when provenance is embedded.
Parameters:
identity: Stable Stage 2 compiler identity line.
Returns: Identity with version (e.g., "Dea language / L0 compiler 1.2.3") when available, or plain identity for fallback builds.
Function build_info_version_text
func build_info_version_text(identity: string) -> string?
Build the multiline Stage 2 --version report when provenance is embedded.
Parameters:
identity: Stable Stage 2 compiler identity line.
Returns: Multiline report text, or null when this binary uses fallback metadata.