diff options
| author | bors <bors@rust-lang.org> | 2023-07-20 07:12:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-20 07:12:22 +0000 |
| commit | c67cb3e577bdd4de640eb11d96cd5ef5afe0eb0b (patch) | |
| tree | 718bce56573cbb50af071101db19daf13ce003a3 /src | |
| parent | 0646a5d1aa3745cb448db247f6fa432890a1812b (diff) | |
| parent | 770c8d06672ea8d317df7bdf5ff5f8ce954ecbdd (diff) | |
| download | rust-c67cb3e577bdd4de640eb11d96cd5ef5afe0eb0b.tar.gz rust-c67cb3e577bdd4de640eb11d96cd5ef5afe0eb0b.zip | |
Auto merge of #113878 - matthiaskrgr:rollup-u0d3kzx, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #113710 (Fix rpath for libdir is specified) - #113787 (Update documentation for std::process::Command's new method) - #113795 (Properly document `lifetime_mapping` in `OpaqueTy`) - #113857 (Add tests for `--document-hidden-items` option) - #113871 (Use the correct span for displaying the line following a derive sugge…) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/builder.rs | 5 | ||||
| -rwxr-xr-x | src/etc/htmldocck.py | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 766c187e8e8..32eb4e68b08 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1629,6 +1629,7 @@ impl<'a> Builder<'a> { // fun to pass a flag to a tool to pass a flag to pass a flag to a tool // to change a flag in a binary? if self.config.rpath_enabled(target) && util::use_host_linker(target) { + let libdir = self.sysroot_libdir_relative(compiler).to_str().unwrap(); let rpath = if target.contains("apple") { // Note that we need to take one extra step on macOS to also pass // `-Wl,-instal_name,@rpath/...` to get things to work right. To @@ -1636,10 +1637,10 @@ impl<'a> Builder<'a> { // so. Note that this is definitely a hack, and we should likely // flesh out rpath support more fully in the future. rustflags.arg("-Zosx-rpath-install-name"); - Some("-Wl,-rpath,@loader_path/../lib") + Some(format!("-Wl,-rpath,@loader_path/../{}", libdir)) } else if !target.contains("windows") && !target.contains("aix") { rustflags.arg("-Clink-args=-Wl,-z,origin"); - Some("-Wl,-rpath,$ORIGIN/../lib") + Some(format!("-Wl,-rpath,$ORIGIN/../{}", libdir)) } else { None }; diff --git a/src/etc/htmldocck.py b/src/etc/htmldocck.py index 5ab1874e9ed..2e0f832192f 100755 --- a/src/etc/htmldocck.py +++ b/src/etc/htmldocck.py @@ -274,6 +274,8 @@ def get_commands(template): args = shlex.split(args) except UnicodeEncodeError: args = [arg.decode('utf-8') for arg in shlex.split(args.encode('utf-8'))] + except Exception as exc: + raise Exception("line {}: {}".format(lineno + 1, exc)) from None yield Command(negated=negated, cmd=cmd, args=args, lineno=lineno+1, context=line) |
