Merge pull request #5524 from dearblue/gem-headers

Expose all header files of the gems for small compilation
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-08-10 06:21:18 +09:00
committed by GitHub
+2 -1
View File
@@ -14,7 +14,8 @@ MRuby.each_target do
file "#{build_dir}/lib/libmruby.flags.mak" => [__FILE__, libmruby_static] do |t|
mkdir_p File.dirname t.name
open(t.name, 'w') do |f|
f.puts "MRUBY_CFLAGS = #{cc.all_flags}"
gemincs = gems.map { |g| g.export_include_paths.map { |n| g.filename(n) } }.flatten.uniq
f.puts "MRUBY_CFLAGS = #{cc.all_flags([], gemincs)}"
f.puts "MRUBY_CC = #{cc.command}"
f.puts "MRUBY_LD = #{linker.command}"