Skip to content

Commit

Permalink
Windows fix (#11)
Browse files Browse the repository at this point in the history
Fix adapted from https://discourse.mc-stan.org/t/pkgbuild-compile-dll-on-previously-working-rstantools-based-package-fails-with-file-too-big-error/21938/16 to make package compile on my Win10 desktop. Only included the code for `configure.win` as changing the other files broke everything. 

* Updated configure.win and testing workflow to check if this breaks everything.

* Removed windows-fix from testing workflow.
  • Loading branch information
Tess-LaCoil authored Apr 9, 2024
1 parent e2759f0 commit 3c53935
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,8 @@ inst/doc
*.o
*.so

# Ignore large file generated by compilation
src/rmot.dll

# Bugged directory from snapshot package
tests/testthat/_snaps
3 changes: 3 additions & 0 deletions configure.win
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
# Generated by rstantools. Do not edit by hand.

"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "rstantools::rstan_config()"

# Add configuration needed for big object files
echo "PKG_CXXFLAGS += -Wa,-mbig-obj" >> ./src/Makevars.win

0 comments on commit 3c53935

Please sign in to comment.