Consider only dll files to be shared libraries.

This avoids problems where we consider other executables and object files as
libraries and the dyld decides to scan them. Upon this we hit files opened by
other processes and locked by the system (such as bootstat.dat :))

Thanks to Bertrand Bellenot for the diagnosis!
This commit is contained in:
Vassil Vassilev 2021-04-09 20:09:32 +00:00 committed by jenkins
parent db2c5de3f2
commit d466a98e30

View File

@ -276,8 +276,10 @@ namespace cling {
(Magic == file_magic::elf_shared_object)
#endif
#elif defined(_WIN32)
(Magic == file_magic::pecoff_executable
|| platform::IsDLL(libFullPath.str()))
// We should only include dll libraries without including executables,
// object code and others...
(Magic == file_magic::pecoff_executable &&
platform::IsDLL(libFullPath.str()))
#else
# error "Unsupported platform."
#endif