With Split DWARF the resulting object file (then called skeleton CU)
contains the file name of another ("DWO") file with the debug info.
This can be a problem for remote compilation, as it will contain the
name of the file on the compilation server, not on the client.
To use Split DWARF with remote compilation, one needs to either
- make sure only relative paths are used, and mirror the build directory structure of the client on the server,
- inject the desired file name on the client directly.
Here we provide an option for the latter solution:
sets DW_AT_[GNU_]dwo_name without changing the DWO output file name.
For now we keep this as CC1 option, but the idea is to promote it
eventually, if it picks up.
Based on a patch by Antonio Di Monaco.