[clang] [lld] Use the Windows SDK arguments over the environment (PR #144805)

Fabrice de Gans via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 18 17:57:48 PDT 2025


================
@@ -110,19 +114,15 @@ void visualstudio::Linker::ConstructJob(Compilation &C, const JobAction &JA,
                             llvm::archToLegacyVCArch(TC.getArch()));
     CmdArgs.push_back(Args.MakeArgString(Twine("-libpath:") + DIAPath));
   }
-  if (!llvm::sys::Process::GetEnv("LIB") ||
-      Args.getLastArg(options::OPT__SLASH_vctoolsdir,
-                      options::OPT__SLASH_winsysroot)) {
+  if (!llvm::sys::Process::GetEnv("LIB") || A) {
----------------
Steelskin wrote:

I changed this to narrow down the scope.

https://github.com/llvm/llvm-project/pull/144805


More information about the llvm-commits mailing list