mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
compiler version
* common.mk (showflags): show the compiler version. * configure.in (CC_VERSION): compiler with version option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e52a4a70a9
commit
81cb1f6394
3 changed files with 9 additions and 0 deletions
|
@ -53,6 +53,7 @@ arch_hdrdir = $(EXTOUT)/include/$(arch)
|
||||||
VPATH = $(arch_hdrdir)/ruby:$(hdrdir)/ruby:$(srcdir):$(srcdir)/enc:$(srcdir)/missing
|
VPATH = $(arch_hdrdir)/ruby:$(hdrdir)/ruby:$(srcdir):$(srcdir)/enc:$(srcdir)/missing
|
||||||
|
|
||||||
empty =
|
empty =
|
||||||
|
CC_VERSION = @CC_VERSION@
|
||||||
OUTFLAG = @OUTFLAG@$(empty)
|
OUTFLAG = @OUTFLAG@$(empty)
|
||||||
COUTFLAG = @COUTFLAG@$(empty)
|
COUTFLAG = @COUTFLAG@$(empty)
|
||||||
ARCH_FLAG = @ARCH_FLAG@
|
ARCH_FLAG = @ARCH_FLAG@
|
||||||
|
|
|
@ -159,6 +159,7 @@ showflags:
|
||||||
" DLDFLAGS = $(DLDFLAGS)" \
|
" DLDFLAGS = $(DLDFLAGS)" \
|
||||||
" SOLIBS = $(SOLIBS)" \
|
" SOLIBS = $(SOLIBS)" \
|
||||||
$(MESSAGE_END)
|
$(MESSAGE_END)
|
||||||
|
-@$(CC_VERSION)
|
||||||
|
|
||||||
.PHONY: showconfig
|
.PHONY: showconfig
|
||||||
showconfig:
|
showconfig:
|
||||||
|
|
|
@ -422,6 +422,13 @@ RUBY_CPPOUTFILE
|
||||||
AC_SUBST(OUTFLAG)
|
AC_SUBST(OUTFLAG)
|
||||||
AC_SUBST(COUTFLAG)
|
AC_SUBST(COUTFLAG)
|
||||||
|
|
||||||
|
cc_version_option=
|
||||||
|
for option in --version -v -V -qversion; do
|
||||||
|
$CC $option > /dev/null 2>&1 || continue
|
||||||
|
cc_version='$(CC) '$option
|
||||||
|
done
|
||||||
|
AC_SUBST(CC_VERSION, $cc_version)
|
||||||
|
|
||||||
RUBY_UNIVERSAL_ARCH
|
RUBY_UNIVERSAL_ARCH
|
||||||
if test "$target_cpu" != "$host_cpu" -a "$GCC" = yes -a "$cross_compiling" = no -a "$universal_binary" = no; then
|
if test "$target_cpu" != "$host_cpu" -a "$GCC" = yes -a "$cross_compiling" = no -a "$universal_binary" = no; then
|
||||||
RUBY_DEFAULT_ARCH("$target_cpu")
|
RUBY_DEFAULT_ARCH("$target_cpu")
|
||||||
|
|
Loading…
Reference in a new issue