summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorBo Anderson <mail@boanderson.me>2022-10-15 22:51:39 +0100
committergit <svn-admin@ruby-lang.org>2022-11-08 17:05:19 +0000
commit0df47fdaf9c8bcfad0180aab81f9ceb162b360a1 (patch)
tree94264b4a1ca47000fb4a3eac7e7c201476ec0d26 /lib/bundler
parent2244d5084e32fea801bff1060ef528769bebaa36 (diff)
[rubygems/rubygems] Add tests for universal Ruby with arch-specific prebuilt gems
https://github.com/rubygems/rubygems/commit/11229b16c3
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/rubygems_ext.rb2
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