File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: fdac9e470cd87429b6aefc6e02772163a8d41fc8
2
+ refs/heads/master: 01b53817033ba3a3ec01685d30e4a8e7ce14ba0c
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5
5
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8
Original file line number Diff line number Diff line change @@ -1099,9 +1099,10 @@ pub fn link_args(sess: Session,
1099
1099
// and binutils 2.22+ won't add them automatically
1100
1100
if sess. targ_cfg . os == abi:: OsLinux {
1101
1101
// GNU-style linkers supports optimization with -O. --gc-sections removes metadata and
1102
- // potentially other useful things, so don't include it.
1102
+ // potentially other useful things, so don't include it. GNU ld doesn't need a numeric
1103
+ // argument, but other linkers do.
1103
1104
if sess. opts . optimize == session:: Default || sess. opts . optimize == session:: Aggressive {
1104
- args. push ( ~"-Wl , -O ") ;
1105
+ args. push ( ~"-Wl , -O1 ") ;
1105
1106
}
1106
1107
1107
1108
args. push_all ( [ ~"-lrt", ~"-ldl"] ) ;
You can’t perform that action at this time.
0 commit comments