diff --git a/.github/workflows/test-r.yml b/.github/workflows/test-r.yml index 1e91ba031..874ad2444 100644 --- a/.github/workflows/test-r.yml +++ b/.github/workflows/test-r.yml @@ -166,6 +166,12 @@ jobs: - uses: rui314/setup-mold@v1 + - name: Install mold on Rtools + if: runner.os == 'Windows' + run: | + pacman -Sy --noconfirm + pacman -S --noconfirm --needed mingw-w64-x86_64-mold + - uses: Swatinem/rust-cache@v2 with: workspaces: "src/rust -> target" diff --git a/configure b/configure index 61d899272..b81c5fae2 100755 --- a/configure +++ b/configure @@ -210,19 +210,19 @@ check_mold() { return fi - if command -v mold >/dev/null 2>&1; then + if command -v ld.mold >/dev/null 2>&1; then add_additional_lib "-fuse-ld=mold" export RUSTFLAGS="${RUSTFLAGS:-} -C link-args=-fuse-ld=mold" cat <