зеркало из https://github.com/github/ruby.git
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:
Родитель
a7cf39bba8
Коммит
2d5b723b2f
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче