Skip to content

Commit 6f54491

Browse files
committed
Fix ABI version error with TruffleRuby on Mac
1 parent e1c98d3 commit 6f54491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pg_query/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def ext_symbols_filename
4343
SYMFILE = File.join(__dir__, ext_symbols_filename)
4444

4545
if RUBY_PLATFORM =~ /darwin/
46-
$DLDFLAGS << " -Wl,-exported_symbols_list #{SYMFILE}" unless defined?(::Rubinius)
46+
$DLDFLAGS << " -Wl,-exported_symbols_list #{SYMFILE}" unless defined?(::Rubinius) || RUBY_ENGINE == 'truffleruby'
4747
elsif RUBY_PLATFORM !~ /cygwin|mswin|mingw|bccwin|wince|emx/
4848
$DLDFLAGS << " -Wl,--retain-symbols-file=#{SYMFILE}"
4949
end

0 commit comments

Comments
 (0)