⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

normalize_environment

Function normalize_environment 

Source
pub fn normalize_environment(env: &mut BuildEnvironment)
Expand description

Normalize a build environment for reproducibility.

  • Sets SOURCE_DATE_EPOCH to “0” to eliminate timestamp variation
  • Removes locale-dependent variables (LC_ALL, LANG, LANGUAGE) and sets them to “C” for deterministic collation
  • Sets TZ=UTC for timezone consistency
  • Canonicalizes paths by stripping trailing slashes and collapsing double slashes