Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 10ebc0d

Browse files
committed
Add armv6 to architecture detection
Closes #235 Closes #234
1 parent 683c5f8 commit 10ebc0d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ext/libv8/arch.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ module Arch
66

77
def libv8_arch
88
case Gem::Platform.local.cpu
9-
when /^arm(v7.*)*$/ then 'arm'
10-
when /^a(rm|arch)64$/ then 'arm64'
11-
when /^x86$/ then 'ia32'
12-
when /^(x86_64|amd64)$/ then 'x64'
13-
when /^universal$/ then 'x64' # OS X
9+
when /^arm(v6.*|v7.*)*$/ then 'arm'
10+
when /^a(rm|arch)64$/ then 'arm64'
11+
when /^x86$/ then 'ia32'
12+
when /^(x86_64|amd64)$/ then 'x64'
13+
when /^universal$/ then 'x64' # OS X
1414
else
1515
warn "Unsupported target: #{Gem::Platform.local.cpu}"
1616
Gem::Platform.local.cpu

0 commit comments

Comments
 (0)