Skip to content

Commit

Permalink
update usage of 'make' post CmdStan 2.35
Browse files Browse the repository at this point in the history
- mingw32-make is no longer required on Windows

closes #1035
  • Loading branch information
jgabry committed Nov 18, 2024
1 parent bceb482 commit 29d388a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ arch_is_aarch64 <- function() {
}

# Returns the type of make command to use to compile depending on the OS
# First checks if $MAKE is set, otherwise falls back to system-specific default
make_cmd <- function() {
if (os_is_windows() && !os_is_wsl() && (Sys.getenv("CMDSTANR_USE_RTOOLS") == "")) {
if (Sys.getenv("MAKE") != "") {
Sys.getenv("MAKE")
} else if ((cmdstan_version() < "2.35.0") && os_is_windows() && !os_is_wsl() &&
(Sys.getenv("CMDSTANR_USE_RTOOLS") == "")) {
"mingw32-make.exe"
} else {
"make"
Expand Down

0 comments on commit 29d388a

Please sign in to comment.