mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Clear CC_WRAPPER in other than the toplevel
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
37c08fad04
commit
9b7d8947df
2 changed files with 5 additions and 0 deletions
|
@ -3883,6 +3883,7 @@ AS_IF([test x"$CC_WRAPPER" != x], [
|
|||
CC_WRAPPER='$(rubyarchdir)/darwin-cc'
|
||||
XCC_WRAPPER='$(top_srcdir)/tool/darwin-cc'
|
||||
])
|
||||
AC_SUBST(CC_WRAPPER, '')
|
||||
AC_SUBST(XCC_WRAPPER)
|
||||
|
||||
AS_CASE([" $CPP "], [*" $CC "*], [CPP=`echo " $CPP " | sed "s| $CC |"' $(CC) |;s/^ *//;s/ *$//'`])
|
||||
|
|
|
@ -1971,6 +1971,7 @@ VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])}
|
|||
headers << '$(RUBY_EXTCONF_H)' if $extconf_h
|
||||
mk << %{
|
||||
|
||||
CC_WRAPPER = #{CONFIG['CC_WRAPPER']}
|
||||
CC = #{CONFIG['CC']}
|
||||
CXX = #{CONFIG['CXX']}
|
||||
LIBRUBY = #{CONFIG['LIBRUBY']}
|
||||
|
@ -2519,6 +2520,9 @@ site-install-rb: install-rb
|
|||
end
|
||||
$warnflags = config['warnflags'] unless $extmk
|
||||
end
|
||||
if (w = rbconfig['CC_WRAPPER']) and !w.empty? and !File.executable?(w)
|
||||
rbconfig['CC_WRAPPER'] = config['CC_WRAPPER'] = ''
|
||||
end
|
||||
$CFLAGS = with_config("cflags", arg_config("CFLAGS", config["CFLAGS"])).dup
|
||||
$CXXFLAGS = (with_config("cxxflags", arg_config("CXXFLAGS", config["CXXFLAGS"]))||'').dup
|
||||
$ARCH_FLAG = with_config("arch_flag", arg_config("ARCH_FLAG", config["ARCH_FLAG"])).dup
|
||||
|
|
Loading…
Reference in a new issue