Lines Matching +full:bat +full:- +full:present

1 //===-- MSVCPaths.cpp - MSVC path-parsing helpers -------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
48 #pragma clang diagnostic ignored "-Wnon-virtual-dtor"
72 auto Status = VFS.status(DirIt->path()); in getHighestNumericTupleInDirectory()
73 if (!Status || !Status->isDirectory()) in getHighestNumericTupleInDirectory()
75 llvm::StringRef CandidateName = llvm::sys::path::filename(DirIt->path()); in getHighestNumericTupleInDirectory()
119 Path = WinSdkDir->str(); in getWindowsSDKDirViaCommandLine()
168 /// This also supports a means to look for high-versioned keys by use
187 // If we have a $VERSION placeholder, do the highest-version search. in getSystemRegistryString()
189 const char *keyEnd = placeHolder - 1; in getSystemRegistryString()
193 keyEnd--; in getSystemRegistryString()
197 size_t partialKeyLength = keyEnd - keyPath; in getSystemRegistryString()
200 partialKeyLength = sizeof(partialKey) - 1; in getSystemRegistryString()
209 DWORD index, size = sizeof(keyName) - 1; in getSystemRegistryString()
222 strncpy(numBuf, sp, sizeof(numBuf) - 1); in getSystemRegistryString()
223 numBuf[sizeof(numBuf) - 1] = '\0'; in getSystemRegistryString()
243 size = sizeof(keyName) - 1; in getSystemRegistryString()
254 phValue->clear(); in getSystemRegistryString()
367 // MSVC ships with two linkers: a 32-bit x86 and 64-bit x86 linker. in getSubDirectoryPath()
369 // On ARM64, pick the 32-bit x86 linker; the 64-bit one doesn't run in getSubDirectoryPath()
373 // if we can invoke the 64-bit linker. It's generally preferable in getSubDirectoryPath()
374 // because it won't run out of address-space. in getSubDirectoryPath()
406 // Trust /winsdkdir and /winsdkversion if present. in getWindowsSDKDir()
471 // vcvarsqueryregistry.bat for Visual Studio 2015 queries the registry in getUniversalCRTSdkDir()
494 ToolsVersion = VCToolsVersion->str(); in findVCToolChainViaCommandLine()
500 Path = VCToolsDir->str(); in findVCToolChainViaCommandLine()
510 // These variables are typically set by vcvarsall.bat in findVCToolChainViaEnvironment()
556 // whatever/VC/bin --> old toolchain, VC dir is toolchain dir. in findVCToolChainViaEnvironment()
594 if (!It->starts_with_insensitive(Prefix)) in findVCToolChainViaEnvironment()
623 // FIXME: This really should be done once in the top-level program's main in findVCToolChainViaSetupConfig()
649 HR = ISetupConfiguration2Ptr(Query)->EnumAllInstances(&EnumInstances); in findVCToolChainViaSetupConfig()
654 HR = EnumInstances->Next(1, &Instance, nullptr); in findVCToolChainViaSetupConfig()
663 HR = Instance->GetInstallationVersion(VersionString.GetAddress()); in findVCToolChainViaSetupConfig()
666 HR = ISetupHelperPtr(Query)->ParseVersion(VersionString, &VersionNum); in findVCToolChainViaSetupConfig()
673 } while ((HR = EnumInstances->Next(1, &Instance, nullptr)) == S_OK); in findVCToolChainViaSetupConfig()
679 HR = NewestInstance->ResolvePath(L"VC", VCPathWide.GetAddress()); in findVCToolChainViaSetupConfig()
698 ToolsVersion = ToolsVersionFile->get()->getBuffer().rtrim(); in findVCToolChainViaSetupConfig()
705 if (!Status || !Status->isDirectory()) in findVCToolChainViaSetupConfig()