mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 10:45:34 +08:00
DEV: Search for -gnu
gem variants (#27347)
> Platform names with a *-linux suffix are aliases for *-linux-gnu Should fix the ffi upgrade issue
This commit is contained in:
parent
fb812a48ab
commit
b618d08d36
@ -34,12 +34,13 @@ module PluginGem
|
|||||||
|
|
||||||
def self.platform_variants(spec_file)
|
def self.platform_variants(spec_file)
|
||||||
platform_less = "#{spec_file}.gemspec"
|
platform_less = "#{spec_file}.gemspec"
|
||||||
|
|
||||||
platform_full = "#{spec_file}-#{RUBY_PLATFORM}.gemspec"
|
platform_full = "#{spec_file}-#{RUBY_PLATFORM}.gemspec"
|
||||||
|
|
||||||
platform_version_less =
|
platform_version_less =
|
||||||
"#{spec_file}-#{Gem::Platform.local.cpu}-#{Gem::Platform.local.os}.gemspec"
|
"#{spec_file}-#{Gem::Platform.local.cpu}-#{Gem::Platform.local.os}.gemspec"
|
||||||
|
|
||||||
[platform_less, platform_full, platform_version_less]
|
variants = [platform_less, platform_full, platform_version_less]
|
||||||
|
variants << "#{spec_file}-#{RUBY_PLATFORM}-gnu.gemspec" if RUBY_PLATFORM.end_with?("-linux")
|
||||||
|
|
||||||
|
variants.uniq
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user