Skip to content

fix(setup-r): export correct RTOOLS HOME env vars on Windows ARM64 and x64 - #1104

Open
vjymisal0 wants to merge 1 commit into
r-lib:v2-branchfrom
vjymisal0:fix/windows-arm-rtools-env-vars
Open

fix(setup-r): export correct RTOOLS HOME env vars on Windows ARM64 and x64#1104
vjymisal0 wants to merge 1 commit into
r-lib:v2-branchfrom
vjymisal0:fix/windows-arm-rtools-env-vars

Conversation

@vjymisal0

Copy link
Copy Markdown

Summary

Fixes #1102.

On windows-11-arm runners, RTOOLS45_AARCH64_HOME (or RTOOLS44_AARCH64_HOME) was unset while RTOOLS45_HOME was pointing to the x86_64 toolchain path, breaking downstream workflows performing toolchain lookups.

Changes

  • In setup-r/src/installer.ts, export RTOOLS45_AARCH64_HOME / RTOOLS44_AARCH64_HOME when ARCH === 'arm64'.
  • Export RTOOLS45_HOME / RTOOLS44_HOME / RTOOLS43_HOME / RTOOLS42_HOME / RTOOLS40_HOME on x64.

…d x64

On windows-11-arm runners, RTOOLS45_AARCH64_HOME (or RTOOLS44_AARCH64_HOME)
should be exported to point to the ARM64 toolchain directory rather than
leaving the ARM64 variable unset and defaulting to x86_64 paths.

Closes r-lib#1102

Signed-off-by: vjymisal0 <vijay.looprai@gmail.com>
Copilot AI lite review requested due to automatic review settings August 18, 2026 13:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.33%. Comparing base (5cc1f0d) to head (2b64ccd).

Additional details and impacted files
@@            Coverage Diff             @@
##           v2-branch    #1104   +/-   ##
==========================================
  Coverage      83.33%   83.33%           
==========================================
  Files              3        3           
  Lines             12       12           
==========================================
  Hits              10       10           
  Misses             2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[setup-r] Windows ARM RTools environment variables not correctly set

3 participants