mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5524 from dearblue/gem-headers
Expose all header files of the gems for small compilation
This commit is contained in:
+2
-1
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user