summaryrefslogtreecommitdiff
path: root/tool/mkconfig.rb
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-02-22 16:40:32 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-02-24 09:18:01 -0500
commit9bd4b2ab14eea3df392f4531887fcc1c59291d02 (patch)
tree36370e8725714d31c7de688773793dc184f5628b /tool/mkconfig.rb
parentb13a7c8e36e9b00b5c6668846f31be4e25523111 (diff)
downloadruby-9bd4b2ab14eea3df392f4531887fcc1c59291d02.tar.gz
Add ABI version to RUBY_LIB_VERSION
This commit adds the ABI version as build metadata to RUBY_LIB_VERSION. This will ensure that gems are installed in a path with the ABI version.
Diffstat (limited to 'tool/mkconfig.rb')
-rwxr-xr-xtool/mkconfig.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb
index 0dd25eb400..6e23af5185 100755
--- a/tool/mkconfig.rb
+++ b/tool/mkconfig.rb
@@ -229,15 +229,6 @@ end
print " CONFIG[#{v.dump}] = #{(versions[v]||vars[v]).dump}\n"
end
-# Get the ABI version
-File.foreach(File.join(srcdir, "include/ruby/internal/abi.h")) do |l|
- m = /^\s*#\s*define\s+RUBY_ABI_VERSION\s+(\d+)/.match(l)
- if m
- print " CONFIG[\"ruby_abi_version\"] = \"#{m[1]}\"\n"
- break
- end
-end
-
dest = drive ? %r'= "(?!\$[\(\{])(?i:[a-z]:)' : %r'= "(?!\$[\(\{])'
v_disabled = {}
v_others.collect! do |x|