Commit 963c921
committed
Contrib docs: note how to run a binary directly
Because it took me a moment to figure this out when I was wanting to run
`rustfmt` through a debugger.
Setting `LD_LIBRARY_PATH` uses some Bash parameter expansion,
specifically the form `${parameter:+word}`[1], to avoid potentially adding
an empty element to `LD_LIBRARY_PATH` that could be a security issue
(see[2])
Some history: there used to be a note in `README.md` about setting this
variable, but that was removed with
2e75f23. However, with the addition of
`rustc_driver` with d7fa2ee (original
upstream[3]) this is required again.
Link: https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html [1]
Link: #2923 [2]
Link: rust-lang/rust@8c000a6 [3]1 parent 1e6ce1d commit 963c921
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
119 | 143 | | |
120 | 144 | | |
121 | 145 | | |
| |||
0 commit comments