Skip to content

Commit 371198a

Browse files
author
Tim Tsang
committed
Fix Windows build: add LAPACK/BLAS/FLIBS to Makevars, exclude .github from tarball
RcppArmadillo needs LAPACK on Windows (dgemv_, dpotrf_ etc). Also add .github to .Rbuildignore so R CMD check doesn't flag it.
1 parent 6ee779e commit 371198a

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
^notebook$
55
^\.DS_Store$
66
^test_dynamic_seasons\.R$
7+
^\.github$

src/Makevars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
CXX_STD = CXX11
2-
PKG_LIBS = `"$(R_HOME)/bin/Rscript" -e "RcppParallel::RcppParallelLibs()"`
2+
PKG_LIBS = `"$(R_HOME)/bin/Rscript" -e "RcppParallel::RcppParallelLibs()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

src/Makevars.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
CXX_STD = CXX11
22
PKG_CXXFLAGS = -DRCPP_PARALLEL_USE_TBB=1
3-
PKG_LIBS = $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "RcppParallel::RcppParallelLibs()")
3+
PKG_LIBS = $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "RcppParallel::RcppParallelLibs()") $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

0 commit comments

Comments
 (0)