Skip to content

Commit 381be13

Browse files
committed
Revert "don't check Sys.getenv("MAKE") first (debugging GHA)"
This reverts commit 9c7603e.
1 parent 9c7603e commit 381be13

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

R/utils.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,11 @@ arch_is_aarch64 <- function() {
9292
}
9393

9494
# Returns the type of make command to use to compile depending on the OS
95+
# First checks if $MAKE is set, otherwise falls back to system-specific default
9596
make_cmd <- function() {
96-
if ((cmdstan_version() < "2.35.0") && os_is_windows() && !os_is_wsl() &&
97+
if (Sys.getenv("MAKE") != "") {
98+
Sys.getenv("MAKE")
99+
} else if ((cmdstan_version() < "2.35.0") && os_is_windows() && !os_is_wsl() &&
97100
(Sys.getenv("CMDSTANR_USE_RTOOLS") == "")) {
98101
"mingw32-make.exe"
99102
} else {

0 commit comments

Comments
 (0)