Draft: dh_setup_copyright: drop codegen unit name from comp name
Since rustc 1.59.0 (see https://github.com/rust-lang/rust/pull/92024), the codegen unit name is embedded into the DW_AT_name to avoid duplicated DW_AT_name which would violate Appendix F ("Split Dwarf Object Files") of the DWARF 5 specification.
Because codegen unit name are added after a '@', we need to strip everything after @ to determine the actual source file.
infrastructure/apertis-issues#456 (closed)
Signed-off-by: Dylan Aïssi dylan.aissi@collabora.com