Add LD_LIBRARY_PATH in check_diff.sh

There were some upstream changes made a while back that requires this to
be set when building rustfmt from source like we do in the
`check_diff.sh` script.

See issue 5675 for more details.
This commit is contained in:
Yacin Tmimi 2023-07-10 09:31:59 -04:00 committed by Caleb Cartwright
parent 5ed7f74d10
commit 89500fab0e

View File

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
# https://github.com/rust-lang/rustfmt/issues/5675
export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH
function print_usage() { function print_usage() {
echo "usage check_diff REMOTE_REPO FEATURE_BRANCH [COMMIT_HASH] [OPTIONAL_RUSTFMT_CONFIGS]" echo "usage check_diff REMOTE_REPO FEATURE_BRANCH [COMMIT_HASH] [OPTIONAL_RUSTFMT_CONFIGS]"
} }