Skip to content
  • dearblue's avatar
    73b2e0bf
    Shrink `<BUILD-DIR>/mrbgems/gem_init.c` if possible · 73b2e0bf
    dearblue authored
    If none of the GEMs have `mrblib/` or `src/` directories, generate `mrb_init_mrbgems()` which does nothing, and omit `mrb_final_mrbgems()`.
    
    The impetus was to avoid `gem_funcs[]` becoming a zero-length array, which is not allowed by the C standard.
    The problem is caused by #5938.
    73b2e0bf
    Shrink `<BUILD-DIR>/mrbgems/gem_init.c` if possible
    dearblue authored
    If none of the GEMs have `mrblib/` or `src/` directories, generate `mrb_init_mrbgems()` which does nothing, and omit `mrb_final_mrbgems()`.
    
    The impetus was to avoid `gem_funcs[]` becoming a zero-length array, which is not allowed by the C standard.
    The problem is caused by #5938.
Loading