Skip to content
  • dearblue's avatar
    4c25ace8
    Expose all header files of the gems for small compilation · 4c25ace8
    dearblue authored
    After building mruby, if the user compiles and links to `libmruby.a`, expose the included directory of the captured gems.
    This is a change to the `<build-dir> /lib/libmruby.flags.mak` file and will result in being added to `bin/mruby-config --cflags`.
    This eliminates the need for the user to look up the path and add the compiler flag if the user wants to take advantage of her gems publishing features.
    
    In the main build with `rake CONFIG=...`, there is no problem because it can only be seen from the gems that depends directly and indirectly as before.
    However, when compiling independently by the user using `bin/mruby-config`, a header file name collision may occur if a unique header directory is added.
    4c25ace8
    Expose all header files of the gems for small compilation
    dearblue authored
    After building mruby, if the user compiles and links to `libmruby.a`, expose the included directory of the captured gems.
    This is a change to the `<build-dir> /lib/libmruby.flags.mak` file and will result in being added to `bin/mruby-config --cflags`.
    This eliminates the need for the user to look up the path and add the compiler flag if the user wants to take advantage of her gems publishing features.
    
    In the main build with `rake CONFIG=...`, there is no problem because it can only be seen from the gems that depends directly and indirectly as before.
    However, when compiling independently by the user using `bin/mruby-config`, a header file name collision may occur if a unique header directory is added.
Loading