From 635b3b150f1c8164ef7cbb3ee2732d2ab7867719 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 10 Jun 2025 19:12:10 +0800 Subject: [PATCH] Fix tbb-compat linking after rename --- src/install.libs.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install.libs.R b/src/install.libs.R index ceec728c..c0ac2d1e 100644 --- a/src/install.libs.R +++ b/src/install.libs.R @@ -74,10 +74,10 @@ tbbDll <- file.path(tbbDest, "tbb.dll") if (!file.exists(tbbDll)) { writeLines("** creating tbb stub library") - status <- system("R CMD SHLIB tbb-compat/tbb-compat.cpp") + status <- system("R CMD SHLIB -o tbb-compat/tbb.dll tbb-compat/tbb-compat.cpp") if (status != 0) stop("error building tbb stub library") - file.rename("tbb-compat/tbb-compat.dll", file.path(tbbDest, "tbb.dll")) + file.copy("tbb-compat/tbb.dll", file.path(tbbDest, "tbb.dll")) } }