From c91ba8ceed5374e528e172d519e9f1ccc2b4d4e1 Mon Sep 17 00:00:00 2001 From: Kubo Takehiro Date: Sun, 10 Dec 2023 11:41:37 +0900 Subject: [PATCH] Check Oracle client supported platform on aarch64-linux --- ext/oci8/oraconf.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/oci8/oraconf.rb b/ext/oci8/oraconf.rb index 4ed33b6e..736447df 100644 --- a/ext/oci8/oraconf.rb +++ b/ext/oci8/oraconf.rb @@ -130,6 +130,8 @@ def read_elf(f) @cpu = :ia64 when 62 @cpu = :x86_64 + when 183 + @cpu = :aarch64 else raise "Invalid ELF archtype: #{archtype}" end @@ -379,6 +381,8 @@ def self.guess_ic_dir @@ld_envs = %w[PATH] so_ext = 'dll' check_proc = make_proc_to_check_cpu(is_32bit ? :i386 : :x86_64) + when /aarch64-linux/ + check_proc = make_proc_to_check_cpu(:aarch64) when /i.86-linux/ check_proc = make_proc_to_check_cpu(:i386) when /ia64-linux/