Enable -Zfunction-sections by default for *-windows-{gnu,cygwin} · wesleywiser/rust@e23a5fc (original) (raw)
File tree
2 files changed
lines changed
- compiler/rustc_target/src/spec/base
2 files changed
lines changed
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -26,8 +26,6 @@ pub(crate) fn opts() -> TargetOptions { | ||
| 26 | 26 | TargetOptions { |
| 27 | 27 | os: "cygwin".into(), |
| 28 | 28 | vendor: "pc".into(), |
| 29 | -// FIXME(#13846) this should be enabled for cygwin | |
| 30 | -function_sections: false, | |
| 31 | 29 | linker: Some("gcc".into()), |
| 32 | 30 | dynamic_linking: true, |
| 33 | 31 | dll_prefix: "".into(), |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -80,8 +80,6 @@ pub(crate) fn opts() -> TargetOptions { | ||
| 80 | 80 | os: "windows".into(), |
| 81 | 81 | env: "gnu".into(), |
| 82 | 82 | vendor: "pc".into(), |
| 83 | -// FIXME(#13846) this should be enabled for windows | |
| 84 | -function_sections: false, | |
| 85 | 83 | linker: Some("gcc".into()), |
| 86 | 84 | dynamic_linking: true, |
| 87 | 85 | dll_tls_export: false, |