Skip the pch when a header identity is unknown, union missing sloppiness tokens, report projenv import failures

This commit is contained in:
J. Nick Koston
2026-08-25 19:59:25 -05:00
parent 9636717b32
commit c419fc4bbc
6 changed files with 133 additions and 70 deletions
@@ -649,5 +649,6 @@ def test_ccache_env_pch_disabled() -> None:
def test_ccache_env_respects_user_sloppiness() -> None:
with patch.dict(os.environ, {"CCACHE_SLOPPINESS": "locale"}, clear=True):
env = framework.ccache_env("/usr/bin/ccache")
assert "CCACHE_SLOPPINESS" not in env
# The user's tokens survive; the ones the pch needs are unioned on
assert env["CCACHE_SLOPPINESS"] == "locale,pch_defines,time_macros"
assert env["CCACHE_PCH_EXTSUM"] == "true"