Merge pull request #72352 from compnerd/sysroot

Driver: introduce `-sysroot` option for non-Darwin targets
This commit is contained in:
Saleem Abdulrasool
2024-07-12 08:08:59 -07:00
committed by GitHub
6 changed files with 35 additions and 3 deletions

View File

@@ -2112,6 +2112,9 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts, ArgList &Args,
if (const Arg *A = Args.getLastArg(OPT_visualc_tools_version))
Opts.setVCToolsVersion(A->getValue());
if (const Arg *A = Args.getLastArg(OPT_sysroot))
Opts.setSysRoot(A->getValue());
if (const Arg *A = Args.getLastArg(OPT_resource_dir))
Opts.RuntimeResourcePath = A->getValue();