Repository navigation
build(win): restore the 32-bit session install rule (backport) - #18564
Merged
gtritchie merged 1 commit intoAug 14, 2026
Merged
Conversation
Backport of #18519 (9e0e8e9) to Yellow Yarrow. The multiarch Windows Desktop build installs the 32-bit session into <build>/src/cpp/session/x86, and the 64-bit build had an install rule that collected that directory into resources/app/bin/x86 at package time. That rule sat inside an "install winpty on windows" block and was deleted with it in 04db3f5 (#17814), so the shipped installer has resources/app/bin/x86 with only the x86 VC runtime DLLs -- no rsession.exe, and since #18070 no rsession.dll. With a 32-bit R, session-launcher.ts finds no x86/rsession.exe and falls back to the 64-bit session, which cannot load a 32-bit R.dll. Restore the rule under a comment that names its actual source, and keep the file(MAKE_DIRECTORY) call: install(DIRECTORY) errors on a missing source directory, and non-multiarch builds never create it. This is what makes the x86 binaries signed by 999de99 (#18562) actually reach the installer. The NEWS entry goes in version/news/os/NEWS-2026.08.1-yellow-yarrow.md, since NEWS.md is not carried on this branch. Addresses #18558
RStudio E2E - all platforms1 test(s) failed
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #18519 (
9e0e8e998b) to Yellow Yarrow.The multiarch Windows Desktop build installs the 32-bit session into
<build>/src/cpp/session/x86, and the 64-bit build had an install rule that collected that directory intoresources/app/bin/x86at package time. That rule sat inside an "install winpty on windows" block and was deleted with it in 04db3f5 (#17814), so the shipped installer hasresources/app/bin/x86with only the x86 VC runtime DLLs -- norsession.exe, and since #18070 norsession.dll. With a 32-bit R,session-launcher.tsfinds nox86/rsession.exeand falls back to the 64-bit session, which cannot load a 32-bitR.dll.This restores the rule, under a comment naming its actual source, and keeps the
file(MAKE_DIRECTORY)call:install(DIRECTORY)errors on a missing source directory, and non-multiarch builds never create it.src/cpp/session/CMakeLists.txtis byte-identical tomainafter this change.The NEWS entry goes in
version/news/os/NEWS-2026.08.1-yellow-yarrow.md, sinceNEWS.mdis not carried on this branch.Relationship to #18562
999de99 (backport of #18516) added
x86/rsession.dllto the Sign Executables list. That signs the binaries in the build tree; this PR is what copies them into the installer. Signing runs before the Package stage, so the installer picks up the signed copies.Verification
cmakeconfigure succeeds with the new block (macOS; the block isif(WIN32)-guarded and inert there).package/win32/make-package.bat:243callsmake-install-win32.bat "%BUILD_DIR%\src\cpp\session", and theSessionWin32sub-build setsRSTUDIO_INSTALL_BINtox86(cmake/globals.cmake:522), so the sub-build output lands in<build>/src/cpp/session/x86. That call precedesmake-dist-packages.bat, so the directory is populated by CPack time.make-package.bat clean electron multiarch): confirmrsession.exeandrsession.dllare present inresources/app/bin/x86after install, and that a session against a 32-bit R starts.Addresses #18558