[PATCH] D8484: Allow -gsplit-dwarf for all ELF targets, not just Linux
Ed Maste via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 11 16:59:24 PDT 2023
emaste abandoned this revision.
emaste added a comment.
Herald added a project: All.
Allowed for all ELF OSes as of
commit ee957e045f526ce45d24b0f081f277262c3da43d
Author: Fangrui Song <i at maskray.me>
Date: Thu Mar 28 08:24:00 2019 +0000
[Driver] Allow -gsplit-dwarf on ELF OSes other than Linux and Fuchsia
In gcc, -gsplit-dwarf is handled in gcc/gcc.c as a spec
(ASM_FINAL_SPEC): objcopy --extract-dwo + objcopy --strip-dwo. In
gcc/opts.c, -gsplit_dwarf has the same semantic of a -g. Except for the
availability of the external command 'objcopy', nothing precludes the
feature working on other ELF OSes. llvm doesn't use objcopy, so it doesn't
have to exclude other OSes.
llvm-svn: 357150
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D8484/new/
https://reviews.llvm.org/D8484
More information about the cfe-commits
mailing list