Skip to content

Commit ba90b6a

Browse files
cdervclaude
andcommitted
perf(R): avoid FFI call when ARM64 R is correctly configured
Check isX64R first to short-circuit when R is ARM64 (the correct setup). This avoids unnecessary IsWow64Process2 FFI call in the common case. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 52b9b07 commit ba90b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/knitr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function checkWindowsArmR(platform: string | undefined): void {
8282

8383
const isX64R = platform.includes("x86_64") || platform.includes("i386");
8484

85-
if (isWindowsArm() && isX64R) {
85+
if (isX64R && isWindowsArm()) {
8686
throw new WindowsArmX64RError(
8787
"x64 R detected on Windows ARM.\n\n" +
8888
"x64 R runs under emulation and is not reliable for Quarto.\n" +

0 commit comments

Comments
 (0)