Skip to content

Commit aed85f0

Browse files
committed
dlldeptool: never pull UCRT
1 parent 36656bd commit aed85f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/cmake/dlldeptool/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct ModuleInfo {
4747

4848
bool noVCRuntime=false;
4949
auto const msdlls={"msvcp","msvcr","vccorlib","vcamp","vcomp",
50-
"mfc","mfcm","msdia","atl","vcruntime","concrt","api-ms-win-"};
50+
"mfc","mfcm","msdia","atl","vcruntime","concrt"};
5151

5252
std::vector<ModuleInfo> processedModules;
5353
std::vector<ModuleInfo> deployedModules;
@@ -57,6 +57,7 @@ ModuleValidation validateModule(const std::string &str) {
5757
if(strFileName.rfind(".dll")!=strFileName.size()-4) return nodecision;
5858

5959
if(strFileName=="msvcrt.dll") return forbid;
60+
if(strFileName.find("api-ms-win")==0) return forbid; // UCRT is an OS component
6061

6162
// Compare file names against known Microsoft Visual C++ redistributable DLL names
6263
for(auto const &msdll: msdlls) {

0 commit comments

Comments
 (0)