We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b80205 + 73a1cb2 commit c681d32Copy full SHA for c681d32
R/utils.R
@@ -92,8 +92,11 @@ arch_is_aarch64 <- function() {
92
}
93
94
# 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
96
make_cmd <- function() {
- 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") == "")) {
100
"mingw32-make.exe"
101
} else {
102
"make"
0 commit comments