diff --git a/lib/base.rb b/lib/base.rb index 7945d12..74ec6e1 100644 --- a/lib/base.rb +++ b/lib/base.rb @@ -110,14 +110,12 @@ def determine_libwasmvm_suffix else raise "Unsupported architecture: #{Hardware::CPU.arch}" end + elsif Hardware::CPU.intel? + "x86_64.so" + elsif Hardware::CPU.arm? + "aarch64.so" else - if Hardware::CPU.intel? - "x86_64.so" - elsif Hardware::CPU.arm? - "aarch64.so" - else - raise "Unsupported architecture: #{Hardware::CPU.arch}" - end + raise "Unsupported architecture: #{Hardware::CPU.arch}" end else raise "Unsupported OS: #{OS::NAME}"