Merge pull request #83878 from cachemeifyoucan/eng/PR-134363755

[Caching] Do not infer default on disk cas path when parsing options
This commit is contained in:
Steven Wu
2025-08-26 12:36:51 -07:00
committed by GitHub
3 changed files with 8 additions and 2 deletions

View File

@@ -785,8 +785,6 @@ static bool ParseCASArgs(CASOptions &Opts, ArgList &Args,
Opts.CacheSkipReplay |= Args.hasArg(OPT_cache_disable_replay);
if (const Arg *A = Args.getLastArg(OPT_cas_path))
Opts.CASOpts.CASPath = A->getValue();
else if (Opts.CASOpts.CASPath.empty())
Opts.CASOpts.CASPath = llvm::cas::getDefaultOnDiskCASPath();
if (const Arg *A = Args.getLastArg(OPT_cas_plugin_path))
Opts.CASOpts.PluginPath = A->getValue();