about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorFrank Denis <github@pureftpd.org>2023-02-21 14:52:20 +0100
committerFrank Denis <github@pureftpd.org>2023-02-21 14:52:20 +0100
commit8e250c3c6462991ef618ba07d8ce3208ec585a8f (patch)
tree5ddc88b3e38483431f567c568332348cbfa041bd /compiler/rustc_codegen_gcc
parentbda32a4023b1d3f96e56e1b2fc7510324f430316 (diff)
downloadrust-8e250c3c6462991ef618ba07d8ce3208ec585a8f.tar.gz
rust-8e250c3c6462991ef618ba07d8ce3208ec585a8f.zip
Linker: use -z <params> instead of -z<params>
The GNU linker accepts -z<params>, but this is undocumented, and
not supported by other linkers.

In particular, `zig cc`, when used as the C compiler/linker
(e.g. when using `cargo-zigbuild`), will not accept this
undocumented syntax.

In `linker.rs`, both syntaxes are also used inconsistently.

The Go compiler used to have the same issue, but fixed it:

https://github.com/golang/go/commit/38607c553878da21b5042e63997ecb3b7201e684
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions