Skip to content

Commit

Permalink
fix(native-comp): support libgccjit 11.3.0
Browse files Browse the repository at this point in the history
The libgccjit shared library file was renamed from libgccjit.so to
libgccjit.0.dylib in 11.3.0.

Fixes jimeh#71
  • Loading branch information
jimeh committed Apr 30, 2022
1 parent c2fb07f commit e31f5aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-emacs-for-macos
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,8 @@ class GccInfo

def libgccjit_lib_dir
@libgccjit_lib_dir ||= Dir[
File.join(libgccjit_root_dir, 'lib/gcc/*/libgccjit.so*')
File.join(libgccjit_root_dir, 'lib/gcc/*/libgccjit*.dylib'),
File.join(libgccjit_root_dir, 'lib/gcc/*/libgccjit.so*'),
]
.map { |path| File.dirname(path) }
.select { |path| File.basename(path).match(/^\d+$/) }
Expand Down

0 comments on commit e31f5aa

Please sign in to comment.