diff options
| author | Wang Qilin <qilin.wang@huawei.com> | 2023-05-05 17:18:42 +0800 |
|---|---|---|
| committer | Wang Qilin <qilin.wang@huawei.com> | 2023-05-05 17:46:10 +0800 |
| commit | 23e443a5faab17059be8b9035bfa6f608cff1530 (patch) | |
| tree | 34c3ec3a3f9f30f861f01f0aa8eedaf011415047 /src/bootstrap/builder.rs | |
| parent | f5559e338256f17ada6d82b429acc2dbd8facc9c (diff) | |
support enable rpath in each target independently
Diffstat (limited to 'src/bootstrap/builder.rs')
| -rw-r--r-- | src/bootstrap/builder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 0d2d512b4b2..b8e50342f92 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1610,7 +1610,7 @@ impl<'a> Builder<'a> { // argument manually via `-C link-args=-Wl,-rpath,...`. Plus isn't it // 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.rust_rpath && util::use_host_linker(target) { + if self.config.rpath_enabled(target) && util::use_host_linker(target) { 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 |
