[PATCH] D38587: [dsymutil] Emit valid debug locations when no symbol flags are set

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 07:29:12 PDT 2017


fjricci added a comment.

I'm running into some issues with using a precompiled binary + object file here. For some reason, the debug info contains an absolute path to the object file instead of a relative path, so dsymutil will fail because it's looking for a path that doesn't exist (ie a path on my local machine). This is true even if I use `-fdebug-compilation-dir` (it updates the debug info in the IR, but doesn't change where dsymutil looks for the object file). I also tried -add_ast_path, which works as a hacky workaround because it will search the relative path in addition to the absolute path, but that seems like a bad solution.

Interestingly, I tried to reproduce the test object files created in one of the other tests (X86/alias.test), and when I regenerate the object files locally, they switch to absolute paths as well and the test fails.

One way around this would be to go back to compiling/linking the IR file as part of the test, but this requires adding REQUIRES: darwin, for linking to work.

Any thoughts?


https://reviews.llvm.org/D38587





More information about the llvm-commits mailing list