diff options
author | Alex Crichton <alex@alexcrichton.com> | 2018-10-01 22:50:08 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2018-10-01 22:50:08 -0700 |
commit | 6ebb2c46d5eae7bae8d827fdc68d3ed58b16e95a (patch) | |
tree | 3cd20abb204b6505894d6d9ab00391ee13c0848a /link_rust.sh.in | |
parent | 3dca87e1f98adcdffb962de381d1e5d5410f3d54 (diff) | |
download | tor-6ebb2c46d5eae7bae8d827fdc68d3ed58b16e95a.tar.gz tor-6ebb2c46d5eae7bae8d827fdc68d3ed58b16e95a.zip |
Remove the `link_rust.sh.in` script
This is no longer necessary with upstream rust-lang/rust changes as well
as some local tweaks. Namely:
* The `-fsanitize=address`-style options are now passed via `-C
link-args` through `RUSTFLAGS`. This obviates the need for the shell
script.
* The `-C default-linker-libraries`, disabling `-nodefaultlibs`, is
passed through `RUSTFLAGS`, which is necessary to ensure that
`-fsanitize=address` links correctly.
* The `-C linker` option is passed to ensure we're using the same C
compiler as normal C code, although it has a bit of hackery to only
get the `gcc` out of `gcc -std=c99`
Diffstat (limited to 'link_rust.sh.in')
-rw-r--r-- | link_rust.sh.in | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/link_rust.sh.in b/link_rust.sh.in deleted file mode 100644 index 59f4142baa..0000000000 --- a/link_rust.sh.in +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# -# A linker script used when building Rust tests. Autoconf makes link_rust.sh -# from link_rust_sh.in, and uses it to pass extra options to the linker -# when linking Rust stuff. -# -# We'd like to remove the need for this, but build.rs doesn't let us pass -# -static-libasan and -static-libubsan to the linker. - -$CCLD @RUST_LINKER_OPTIONS@ "$@" |