mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 06:56:13 +02:00
Fix build when enable_shared is on (#6924)
Before this change, if enable_shared was true, the directory would have a suffix of -static and be deleted on each make install. This would cause a second make install to fail.
This commit is contained in:
parent
a7cf39bba8
commit
2d5b723b2f
Notes:
git
2022-12-14 05:59:40 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ end
|
|||
|
||||
version = RbConfig::CONFIG['ruby_version']
|
||||
curdir.glob(".bundle/{extensions,.timestamp}/#{platform}/*/") do |dir|
|
||||
unless File.basename(dir) == version
|
||||
unless File.basename(dir).start_with?(version)
|
||||
curdir.rmdir(dir)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue