diff options
author | Bo Anderson <mail@boanderson.me> | 2022-10-15 22:51:39 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-11-08 17:05:19 +0000 |
commit | 0df47fdaf9c8bcfad0180aab81f9ceb162b360a1 (patch) | |
tree | 94264b4a1ca47000fb4a3eac7e7c201476ec0d26 /lib | |
parent | 2244d5084e32fea801bff1060ef528769bebaa36 (diff) | |
download | ruby-0df47fdaf9c8bcfad0180aab81f9ceb162b360a1.tar.gz |
[rubygems/rubygems] Add tests for universal Ruby with arch-specific prebuilt gems
https://github.com/rubygems/rubygems/commit/11229b16c3
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/rubygems_ext.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index 22cb797b5e..12d6789065 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -310,7 +310,7 @@ module Gem # On universal Rubies, resolve the "universal" arch to the real CPU arch, without changing the extension directory. class Specification - if /^universal\.(?<arch>.*?)-/ =~ RUBY_PLATFORM + if /^universal\.(?<arch>.*?)-/ =~ (CROSS_COMPILING || RUBY_PLATFORM) local_platform = Platform.local if local_platform.cpu == "universal" ORIGINAL_LOCAL_PLATFORM = local_platform.to_s.freeze |