Makefile.in: do not expand MJIT_CC if cross compiling

* Makefile.in (mjit_config.h): expand MJIT_CC only if native
  build, the path on cross compiling host is useless.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-11-06 07:28:11 +00:00
parent 7a2263fb38
commit e0a3558668

View File

@ -598,8 +598,11 @@ mjit_config.h:
esac; \
done; \
}; \
mjit_cc=`command -v $(MJIT_CC)`; \
case $(arch) in *-mingw*) mjit_cc="`cygpath -m $$mjit_cc`";; esac; \
mjit_cc="$(MJIT_CC)"; \
if [ "$(CROSS_COMPILING)" = no ]; then \
mjit_cc="`command -v $$mjit_cc`"; \
case $(arch) in *-mingw*) mjit_cc="`cygpath -m $$mjit_cc`";; esac; \
fi; \
test "$(Q)" = @ || set -x; \
archs="$(UNIVERSAL_ARCHNAMES)"; \
arch_flag=""; \