aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 07:16:16 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 07:16:16 +0000
commitce9b056c5d37ad7760049550b269139f72bdfcfb (patch)
tree332d42e8d0af3c990c17a9a741df6c4e5419cf6f /tool
parentf6ea3cc675d3c2e7182713ad40e3b87a054547d5 (diff)
downloadruby-ce9b056c5d37ad7760049550b269139f72bdfcfb.tar.gz
* mkconfig.rb: Add some high-level documentation.
[ci skip][fix GH-1081] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/mkconfig.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb
index b37241df61..49b841f775 100755
--- a/tool/mkconfig.rb
+++ b/tool/mkconfig.rb
@@ -1,5 +1,10 @@
#!./miniruby -s
+# This script, which is run when ruby is built, generates rbconfig.rb by
+# parsing information from config.status. rbconfig.rb contains build
+# information for ruby (compiler flags, paths, etc.) and is used e.g. by
+# mkmf to build compatible native extensions.
+
# avoid warnings with -d.
$install_name ||= nil
$so_name ||= nil
@@ -167,8 +172,10 @@ prefix = vars.expand(vars["prefix"] ||= "")
rubyarchdir = vars.expand(vars["rubyarchdir"] ||= "")
relative_archdir = rubyarchdir.rindex(prefix, 0) ? rubyarchdir[prefix.size..-1] : rubyarchdir
puts %[\
-# This file was created by #{mkconfig} when ruby was built. Any
-# changes made to this file will be lost the next time ruby is built.
+# This file was created by #{mkconfig} when ruby was built. It contains
+# build information for ruby which is used e.g. by mkmf to build
+# compatible native extensions. Any changes made to this file will be
+# lost the next time ruby is built.
module RbConfig
RUBY_VERSION.start_with?("#{version[/^[0-9]+\.[0-9]+\./] || version}") or