AdaCore / gprbuild

GPRbuild is an advanced build system designed to help automate the construction of multi-language systems.
Other
65 stars 21 forks source link

gpr-knowledge: Handle exceptions in inner loop of Parse_All_Dirs #100

Closed mephistopheles-8 closed 2 years ago

mephistopheles-8 commented 2 years ago

This may be a partial fix of issue #54.

In certain cases, the inner loop of Parse_All_Dirs will throw exceptions, causing the compiler scan to short-circuit. This may be more prevalent on Unix-like systems (for example, the user may not have read-access to all directories in /usr/lib, or the directory may contain broken/recursive symlinks).

Handling the exception should make the scan more robust.

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

yakobowski commented 2 years ago

Sorry for the back-and-forth with the push on your branch, we are in the process of merging this.