We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 577c920 commit ad65ac4Copy full SHA for ad65ac4
tools/config/configure.R
@@ -90,8 +90,16 @@ db <- configure_database()
90
info <- as.list(Sys.info())
91
if (info[["sysname"]] == "Windows") {
92
93
- cygpath <- nzchar(Sys.which("cygpath"))
94
- fmt <- if (cygpath) "$(shell cygpath -m \"%s\")" else "%s"
+ # for older versions of R, we need to resolve the
+ # 'true' path to the C / C++ compiler; we do so
95
+ # via the cygpath utility here
96
+ fmt <- if (getRversion() < "4.2.0") {
97
+ cygpath <- nzchar(Sys.which("cygpath"))
98
+ if (cygpath) "$(shell cygpath -m \"%s\")" else "%s"
99
+ } else {
100
+ "%s"
101
+ }
102
+
103
define(
104
WINDOWS_CC = sprintf(fmt, db$CC),
105
WINDOWS_CXX11 = sprintf(fmt, db$CXX11)
0 commit comments