From 89500fab0ed52c3260288068453dad908a5314e1 Mon Sep 17 00:00:00 2001 From: Yacin Tmimi Date: Mon, 10 Jul 2023 09:31:59 -0400 Subject: [PATCH] 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. --- ci/check_diff.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/check_diff.sh b/ci/check_diff.sh index 062c2dd8673..6f30e8ba9cb 100755 --- a/ci/check_diff.sh +++ b/ci/check_diff.sh @@ -1,5 +1,8 @@ #!/bin/bash +# https://github.com/rust-lang/rustfmt/issues/5675 +export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH + function print_usage() { echo "usage check_diff REMOTE_REPO FEATURE_BRANCH [COMMIT_HASH] [OPTIONAL_RUSTFMT_CONFIGS]" }