llvm-project
e2455bfc - [BOLT][DWARF] Get DWO file via relative path if the CompilationDir does not exist (#154515)

Commit
123 days ago
[BOLT][DWARF] Get DWO file via relative path if the CompilationDir does not exist (#154515) In distributed builds, the DWARF CompilationDir is often invalid, causing BOLT to fail when locating DWO files. If the default path does not exist, it seems better to consider the DWOName as a relative path in this case. The implementation of this patch will try to search for the DWO file in the following order: 1. CompDirOverride + DWOName (if CompDirOverride specified) 2. CompilationDir + DWOName (if CompilationDir exists) 3. **Current directory + DWOName (relative path as a fallback)** This patch also fixes a crash that occurs when DWOName is an absolute path and a DWP file is provided.
Author
Parents
Loading