Skip to content

Commit ec2897f

Browse files
extrowerkkou
authored andcommitted
TEST: multiarch support for Haiku
1 parent 77d7941 commit ec2897f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/fiddle/helper.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,18 @@
111111
end
112112
end
113113
end
114+
when /haiku/
115+
libdir = '/system/lib'
116+
case [0].pack('L!').size
117+
when 4
118+
# 32-bit ruby
119+
libdir = '/system/lib/x86' if File.directory? '/system/lib/x86'
120+
when 8
121+
# 64-bit ruby
122+
libdir = '/system/lib/' if File.directory? '/system/lib/'
123+
end
124+
libc_so = File.join(libdir, "libroot.so")
125+
libm_so = File.join(libdir, "libroot.so")
114126
else
115127
libc_so = ARGV[0] if ARGV[0] && ARGV[0][0] == ?/
116128
libm_so = ARGV[1] if ARGV[1] && ARGV[1][0] == ?/

0 commit comments

Comments
 (0)