diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-02-22 16:40:32 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-02-24 09:18:01 -0500 |
commit | 9bd4b2ab14eea3df392f4531887fcc1c59291d02 (patch) | |
tree | 36370e8725714d31c7de688773793dc184f5628b /tool/mkconfig.rb | |
parent | b13a7c8e36e9b00b5c6668846f31be4e25523111 (diff) | |
download | ruby-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-x | tool/mkconfig.rb | 9 |
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| |