Skip to content

clean stale tbb build artifacts before shipping libraries#255

Merged
kevinushey merged 1 commit into
masterfrom
bugfix/clean-stale-tbb-artifacts
Jul 23, 2026
Merged

clean stale tbb build artifacts before shipping libraries#255
kevinushey merged 1 commit into
masterfrom
bugfix/clean-stale-tbb-artifacts

Conversation

@kevinushey

Copy link
Copy Markdown
Contributor

Companion to #254. Long-lived working trees can carry TBB libraries in src/tbb/build/lib_release from prior builds -- including from the pre-6.0 make-based build system, whose Windows DLLs (tbb.dll, tbbmalloc.dll, tbbmalloc_proxy.dll) were confirmed being swept into installed packages, masking the tbb stub library. #254 makes the Windows dispatch immune; this adds the actual cleanup:

  • useBundledTbb() clears lib_release before repopulating it, so installs ship exactly what the current build produced (also prevents cross-version leftovers on Linux/macOS, e.g. an old libtbb.so.2 alongside a new libtbb.so.12, both matching the copy pattern).
  • Enable the previously commented-out removal of src/tbb/build in cleanup.R (runs on --preclean/--clean/R CMD build). Since the cmake migration, the bundled TBB rebuilds from scratch on every install (build-tbb is deleted after each build), so these artifacts were never reused and removing them costs nothing.

Tarballs were already safe: .Rbuildignore excludes ^src/tbb/build$.

Long-lived working trees can carry TBB libraries in
src/tbb/build/lib_release from prior builds -- including from the
pre-6.0 make-based build system, whose Windows DLLs (tbb.dll,
tbbmalloc.dll, tbbmalloc_proxy.dll) could be swept into the installed
package and mask the tbb stub library.

- clear lib_release before repopulating it in useBundledTbb(), so
  installs ship exactly what the current build produced
- enable the (previously commented-out) removal of src/tbb/build in
  cleanup.R; since the cmake migration, the bundled TBB is rebuilt from
  scratch on every install, so these artifacts are not reused anyway
@kevinushey
kevinushey merged commit c3d0825 into master Jul 23, 2026
5 checks passed
@kevinushey
kevinushey deleted the bugfix/clean-stale-tbb-artifacts branch July 23, 2026 23:12
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.

1 participant