Skip to content

Commit c681d32

Browse files
authored
Merge pull request #1036 from stan-dev/update-make-command
Use `$MAKE` if set, otherwise fall back to system specific `make` command
2 parents 4b80205 + 73a1cb2 commit c681d32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: R/utils.R

+4-1
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 (os_is_windows() && !os_is_wsl() && (Sys.getenv("CMDSTANR_USE_RTOOLS") == "")) {
97+
if (Sys.getenv("MAKE") != "") {
98+
Sys.getenv("MAKE")
99+
} else if (os_is_windows() && !os_is_wsl() && (Sys.getenv("CMDSTANR_USE_RTOOLS") == "")) {
97100
"mingw32-make.exe"
98101
} else {
99102
"make"

0 commit comments

Comments
 (0)