[all-commits] [llvm/llvm-project] e2455b: [BOLT][DWARF] Get DWO file via relative path if th...
Jinjie Huang via All-commits
all-commits at lists.llvm.org
Sun Sep 14 20:31:16 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e2455bfc101bfdd59ac6426c3a804f8b78152fd7
https://github.com/llvm/llvm-project/commit/e2455bfc101bfdd59ac6426c3a804f8b78152fd7
Author: Jinjie Huang <huangjinjie at bytedance.com>
Date: 2025-09-15 (Mon, 15 Sep 2025)
Changed paths:
M bolt/lib/Core/BinaryContext.cpp
M bolt/lib/Rewrite/DWARFRewriter.cpp
A bolt/test/dwo-name-retrieving.test
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list