summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-07 14:27:27 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-07 14:27:27 (GMT)
commit61eaa5e3f20eff3b71b0a668a781ca9ba28ec7be (patch)
treed764530c37ad9da654255dff7d3f3a393aebe8f3
parentfc14c408aa0d75693d2e296e5b4a8e7406004aa2 (diff)
Convert MJIT_CC to Windows path on msys too
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 40e8a95..ca9c41a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -255,8 +255,8 @@ AC_SUBST(CSRCFLAG)
: ${MJIT_CC=$CC}
AS_IF([test "x$cross_compiling" = xno], [
AC_PATH_PROG([MJIT_CC], ${MJIT_CC-$CC})
- AS_CASE([$build_os:$host_os],
- [*cygwin*:*mingw*], [MJIT_CC=`cygpath -ma $MJIT_CC`])
+ AS_CASE([$target_os],
+ [*mingw*], [command -v cygpath && MJIT_CC=`cygpath -ma $MJIT_CC`])
shift 2
MJIT_CC="$MJIT_CC${1+ }$*"
])