-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[elf] -gsplit-dwarf leaves the resulting file in the cache dir #11858
Copy link
Copy link
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorenhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature
Milestone
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorenhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.zig ccZig as a drop-in C compiler featureZig as a drop-in C compiler feature
Zig Version
0.10.0-dev.2473+e498fb155
Steps to Reproduce
A test file for everything:
Expected Behavior
main.dwoappears in the working directory. Like withclang-13:Actual Behavior
When compiled with
zig cc, the dwo file is not placed to the current directory:The resulting binary points to
main.dwoin zig's cache dir:Sure enough, the file in
/home/motiejus/.cache/zig/tmp/38be76f262cfa3bb-main.dwois correct. Point being: copying the file is not enough; the dwo file path in the resulting object file needs to be updated accordingly.For the record, the
clang-13version points tomain.dwoin the same directory: