Adjust debug info stripping

This commit is contained in:
Kai Luo 2023-03-23 15:14:27 +08:00
parent f11611018f
commit 3957d3a08a

View File

@ -1605,8 +1605,9 @@ fn control_flow_guard(&mut self) {}
fn debuginfo(&mut self, strip: Strip, _: &[PathBuf]) {
match strip {
Strip::None => {}
Strip::Debuginfo => {}
Strip::Symbols => {
// FIXME: -s strips the symbol table, line number information
// and relocation information.
Strip::Debuginfo | Strip::Symbols => {
self.cmd.arg("-s");
}
}