diff options
| author | Prajjwal Singh <sin@prajjwal.com> | 2026-02-11 17:28:09 -0500 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2026-02-13 09:46:09 +0900 |
| commit | a88475d6cb6c6a917b56be496cb83733cadd1d27 (patch) | |
| tree | ae50b2ff2f30c934ec53e4d36301c7767f561700 /test/ruby/test_lambda.rb | |
| parent | 98269b6d64f26d1e8f22f3d8fddd30393f009e17 (diff) | |
Report all missing modular GC exports before exiting
Make `ruby_modular_gc_init()` print all symbol import errors instead of
bailing on the first one. That way, GC authors don't have to fix one
symbol at a time.
Also accumulates and prints the total error count across all imports.
Eg.
On a sample GC ripped from the built-in GC implementation, renamed to
"testgc", with the symbols `rb_gc_impl_gc_enable` and
`rb_gc_impl_gc_disable` removed:
**Before:**
```
λ batify build → 74a4e2e66d → ~/.rubies/modgc/bin/ruby
ruby_modular_gc_init: rb_gc_impl_gc_enable function not exported by library /Users/prajjwal/.rubies/modgc/lib/ruby/gc/librubygc.testgc.bundle
```
**After:**
```
λ batify build → master → ~/.rubies/modgc/bin/ruby
ruby_modular_gc_init: rb_gc_impl_gc_enable function not exported by library /Users/prajjwal/.rubies/modgc/lib/ruby/gc/librubygc.testgc.bundle
ruby_modular_gc_init: rb_gc_impl_gc_disable function not exported by library /Users/prajjwal/.rubies/modgc/lib/ruby/gc/librubygc.testgc.bundle
ruby_modular_gc_init: found 2 missing exports in library /Users/prajjwal/.rubies/modgc/lib/ruby/gc/librubygc.testgc.bundle
```
Diffstat (limited to 'test/ruby/test_lambda.rb')
0 files changed, 0 insertions, 0 deletions
