mirror of
https://github.com/sched-ext/scx.git
synced 2026-12-03 23:30:51 +00:00
vergen-gitcl in scx_utils/build.rs ran git on every build, embedding the commit SHA as a rustc-env. Every commit changed the SHA, which invalidated scx_utils and cascaded to every scheduler — defeating sccache entirely. Replace with SCX_GIT_SHA read via option_env!() so the SHA is an ordinary env var that doesn't affect sccache keys. The target triple is emitted from build.rs via the stable TARGET variable. CI sets SCX_GIT_SHA from github.sha; local builds omit the SHA gracefully. Signed-off-by: Pat Somaru <patso@likewhatevs.io>