Skip to content

Commit ac4699b

Browse files
committed
[Temp] Revert "Enable -Zfunction-sections by default for *-windows-{gnu,cygwin}"
This reverts commit e23a5fc.
1 parent e23a5fc commit ac4699b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

compiler/rustc_target/src/spec/base/cygwin.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ pub(crate) fn opts() -> TargetOptions {
2626
TargetOptions {
2727
os: "cygwin".into(),
2828
vendor: "pc".into(),
29+
// FIXME(#13846) this should be enabled for cygwin
30+
function_sections: false,
2931
linker: Some("gcc".into()),
3032
dynamic_linking: true,
3133
dll_prefix: "".into(),

compiler/rustc_target/src/spec/base/windows_gnu.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ pub(crate) fn opts() -> TargetOptions {
8080
os: "windows".into(),
8181
env: "gnu".into(),
8282
vendor: "pc".into(),
83+
// FIXME(#13846) this should be enabled for windows
84+
function_sections: false,
8385
linker: Some("gcc".into()),
8486
dynamic_linking: true,
8587
dll_tls_export: false,

0 commit comments

Comments
 (0)