summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-06 07:03:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-06 07:03:24 +0000
commit9f17712d2c8af72e211467d09eb920ab320be307 (patch)
tree323243eff3f2b3e97e39ba3036fe6214716cc18f
parent09821dd2a5b59024976b01ac7aa445b6fc14b681 (diff)
Makefile.in: convert MJIT_CC to Windows path
* Makefile.in (mjit_config.h): convert MJIT_CC to Windows path on mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 913e4df..593a12f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -598,6 +598,8 @@ mjit_config.h:
esac; \
done; \
}; \
+ mjit_cc=`command -v $(MJIT_CC)`; \
+ case $(arch) in *-mingw*) mjit_cc="`cygpath -m $$mjit_cc`";; esac; \
test "$(Q)" = @ || set -x; \
archs="$(UNIVERSAL_ARCHNAMES)"; \
arch_flag=""; \
@@ -610,7 +612,7 @@ mjit_config.h:
quote MJIT_BUILD_DIR "`$(CHDIR) . && pwd`"; \
quote MJIT_MIN_HEADER_NAME "/$(MJIT_HEADER_INSTALL_DIR)/$(MJIT_MIN_HEADER_NAME)"; \
sep=,; \
- quote "MJIT_CC_COMMON " "`command -v $(MJIT_CC)`"; \
+ quote "MJIT_CC_COMMON " "$${mjit_cc}"; \
quote "MJIT_CFLAGS $${need_mjit_archflag:+ MJIT_ARCHFLAG}" $(MJIT_CFLAGS); \
quote "MJIT_OPTFLAGS " $(MJIT_OPTFLAGS); \
quote "MJIT_DEBUGFLAGS " $(MJIT_DEBUGFLAGS); \