Repository navigation
build: Use vendored Boost with Rtools and drop logging.cpp from CMakeLists.txt - #656
Merged
Merged
Conversation
…akeLists.txt` The Rtools branch of `src/Makevars.win` now passes `-Ivendor`, like the rwinlib branch. It comes before the pkg-config flags, so the vendored Boost wins over the copy Rtools ships in its include directory. `src/CMakeLists.txt` no longer lists `logging.cpp`, which was removed in #545. CMake now configures again. Closes #637. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd5LPjEzyaTRpXAuS6g
3 of 9 tasks
krlmlr
marked this pull request as ready for review
November 29, 2026 12:08
The file was removed in #647. The source list again matches `src/*.c`, `src/*.cpp`, and `src/*.h`, and CMake configures. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd5LPjEzyaTRpXAuS6g
This was referenced Nov 29, 2026
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.
The Rtools branch of
src/Makevars.winnow adds-IvendortoPKG_CPPFLAGS, as the rwinlib branch already does. The flag goes before the pkg-config output becausepkg-config --cflags libpqreturns the Rtools include directory, which also holds Rtools' own Boost. If-Ivendorcame after it, the vendored copy insrc/vendor/boostwould still lose. I evaluated the file with GNU make and a stub pkg-config. The Rtools branch now gives-Ivendor -I<rtools>/include -D...and the rwinlib branch is unchanged at-I../windows/libpq/include -Ivendor -D.... I could not build on Windows from here.src/CMakeLists.txtno longer listslogging.cpp, which was removed in #545. It also no longer listsRPostgres-init.c, which was removed in #647. Before this change,cmake -S srcfailed with "Cannot find source file: logging.cpp". It now configures. I could not runcynkrathis::use_cmakelists(): r-universe has no build for this R version, and GitHub was not reachable from the session. So I edited the file by hand. Its source list now matchessrc/*.c,src/*.cppandsrc/*.hexactly, and the header and order are unchanged.R CMD INSTALLon Linux still succeeds, and the package loads.The
cleanupitem from the issue is left to #585. #635 also editssrc/Makevars.win. This PR changes only one line there, so any merge conflict should be trivial.Closes #637.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Hr1rd5LPjEzyaTRpXAuS6g