Skip to content

Commit aa0df0e

Browse files
authored
Add version.dll and api-ms-win-*.dll to ignore list (#1381)
1 parent 6c8ab20 commit aa0df0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/auditor/dynamic_linkage.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ function should_ignore_lib(lib, ::COFFHandle, platform::AbstractPlatform)
302302
"ntdll.dll",
303303
"msvcrt.dll",
304304
"kernel32.dll",
305+
"version.dll",
305306
"user32.dll",
306307
"shell32.dll",
307308
"shlwapi.dll",
@@ -345,7 +346,8 @@ function should_ignore_lib(lib, ::COFFHandle, platform::AbstractPlatform)
345346
# This one needs some special attention, eventually
346347
"libgomp-1.dll",
347348
]
348-
return lowercase(basename(lib)) in ignore_libs
349+
libname = lowercase(basename(lib))
350+
return libname in ignore_libs || startswith(libname, "api-ms-win-")
349351
end
350352

351353
# Determine whether a library is a "default" library or not, if it is we need

0 commit comments

Comments
 (0)