summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-08-10 06:21:18 +0900
committerGitHub <[email protected]>2021-08-10 06:21:18 +0900
commit3909281126bd9794df27932d33b440e6f4c2feae (patch)
tree30843d4162ebf79d6fa9da60d45c1695bbf04d61
parente8dbf1db9aac6beab280282bb3b1398c770da02d (diff)
parent4c25ace8b3c170af22d630f926c95521030ba768 (diff)
downloadmruby-3909281126bd9794df27932d33b440e6f4c2feae.tar.gz
mruby-3909281126bd9794df27932d33b440e6f4c2feae.zip
Merge pull request #5524 from dearblue/gem-headers
Expose all header files of the gems for small compilation
-rw-r--r--tasks/libmruby.rake3
1 files changed, 2 insertions, 1 deletions
diff --git a/tasks/libmruby.rake b/tasks/libmruby.rake
index 9a7a57ff7..1fb3cbc31 100644
--- a/tasks/libmruby.rake
+++ b/tasks/libmruby.rake
@@ -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}"