Skip to content

Commit

Permalink
Merge pull request #1036 from stan-dev/update-make-command
Browse files Browse the repository at this point in the history
Use `$MAKE` if set, otherwise fall back to system specific `make` command
  • Loading branch information
jgabry authored Nov 22, 2024
2 parents 4b80205 + 73a1cb2 commit c681d32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,11 @@ 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 (os_is_windows() && !os_is_wsl() && (Sys.getenv("CMDSTANR_USE_RTOOLS") == "")) {
"mingw32-make.exe"
} else {
"make"
Expand Down

0 comments on commit c681d32

Please sign in to comment.