Merge commit '2efebd2f0c' into clippy-subtree-update

This commit is contained in:
Philipp Krones 2024-05-21 10:39:30 -07:00
commit bb1481a72a
No known key found for this signature in database
GPG key ID: 1CA0DF2AF59D68A5
124 changed files with 4052 additions and 1147 deletions

View file

@ -2,15 +2,18 @@
set -ex
# Check sysroot handling
sysroot=$(./target/debug/clippy-driver --print sysroot)
test "$sysroot" = "$(rustc --print sysroot)"
sysroot="$(rustc --print sysroot)"
case $OS in
Linux) export LD_LIBRARY_PATH="$sysroot/lib" ;;
macOS) export DYLD_FALLBACK_LIBRARY_PATH="$sysroot/lib" ;;
Windows) export PATH="$(cygpath "$sysroot")/bin:$PATH" ;;
*) exit 1
esac
if [[ ${OS} == "Windows" ]]; then
desired_sysroot=C:/tmp
else
desired_sysroot=/tmp
fi
# Check sysroot handling
test "$(./target/debug/clippy-driver --print sysroot)" = "$sysroot"
desired_sysroot="target/sysroot"
# Set --sysroot in command line
sysroot=$(./target/debug/clippy-driver --sysroot $desired_sysroot --print sysroot)
test "$sysroot" = $desired_sysroot

View file

@ -69,6 +69,6 @@ jobs:
working-directory: clippy_dev
- name: Test clippy-driver
run: |
TOOLCHAIN=$(rustup show active-toolchain | cut -f1 -d' ')
rustup run $TOOLCHAIN bash .github/driver.sh
run: .github/driver.sh
env:
OS: ${{ runner.os }}

View file

@ -116,9 +116,7 @@ jobs:
working-directory: clippy_dev
- name: Test clippy-driver
run: |
TOOLCHAIN=$(rustup show active-toolchain | cut -f1 -d' ')
rustup run $TOOLCHAIN bash .github/driver.sh
run: .github/driver.sh
env:
OS: ${{ runner.os }}