Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test-r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF
---------------------- [MOLD LINKER ENABLED] ----------------------
mold detected in PATH: enabling '-fuse-ld=mold'
ld.mold detected in PATH: enabling '-fuse-ld=mold'
To disable, set R_POLARS_USE_MOLD='false'
-------------------------------------------------------------------
EOF
else
cat <<EOF
---------------------- [MOLD LINKER DISABLED] ----------------------
'mold' not found in PATH. Continuing without mold.
'ld.mold' not found in PATH. Continuing without mold.
--------------------------------------------------------------------
EOF
fi
Expand Down
Loading