We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d7941 commit ec2897fCopy full SHA for ec2897f
1 file changed
test/fiddle/helper.rb
@@ -111,6 +111,18 @@
111
end
112
113
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")
126
else
127
libc_so = ARGV[0] if ARGV[0] && ARGV[0][0] == ?/
128
libm_so = ARGV[1] if ARGV[1] && ARGV[1][0] == ?/
0 commit comments