SCons: Fix up build after cache logic changes

This commit is contained in:
Rémi Verschelde 2024-11-15 18:18:12 +01:00
parent 68fe5817aa
commit c9acbf5a79
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -912,6 +912,7 @@ def prepare_cache(env) -> None:
if env.GetOption("clean"): if env.GetOption("clean"):
return return
cache_path = ""
if env["cache_path"]: if env["cache_path"]:
cache_path = cast(str, env["cache_path"]) cache_path = cast(str, env["cache_path"])
elif os.environ.get("SCONS_CACHE"): elif os.environ.get("SCONS_CACHE"):