summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-27 03:11:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-27 03:11:48 +0000
commitbe42c354246aca869e17e159b2654a283666fd5e (patch)
tree9e726b4d94a235d8f874c82aa4518a361ac752f2
parentf25efeb82f012b6768f5b5c96c363e7f1176a185 (diff)
* tool/make-snapshot (package): suppress constant overwritting warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rwxr-xr-xtool/make-snapshot5
1 files changed, 4 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 0240a29cd2..3c8e2fa812 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -163,7 +163,10 @@ def package(rev, destdir)
"take a breath, and go ahead".scan(/./) {|c|print c; sleep(c == "," ? 0.7 : 0.05)}; puts
def (clean = []).add(n) push(n); n end
Dir.chdir(v) do
- File.open(clean.add("cross.rb"), "w") {|f| f.puts "CROSS_COMPILING=true"}
+ File.open(clean.add("cross.rb"), "w") do |f|
+ f.puts "Object.__send__(:remove_const, :CROSS_COMPILING) if defined?(CROSS_COMPILING)"
+ f.puts "CROSS_COMPILING=true"
+ end
unless File.exist?("configure")
print "creating configure..."
unless system("autoconf")