diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-11-03 18:13:56 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-03 18:13:56 +0900 |
| commit | f8156ae17511e7255b5984075a025533d3771cd0 (patch) | |
| tree | ac5f32e7d10748d4c024ec6c63ea84cb327b34ef | |
| parent | b08da9c30b3c994f953a52ecf04bd2d2711a1733 (diff) | |
| parent | 82a2a5657c1023cbad15db6eec4f85aba594a41e (diff) | |
| download | mruby-f8156ae17511e7255b5984075a025533d3771cd0.tar.gz mruby-f8156ae17511e7255b5984075a025533d3771cd0.zip | |
Merge pull request #5113 from shuujii/reduce-recompilation-when-updating-presym-target-files
Reduce recompilation when updating presym target files
| -rw-r--r-- | Rakefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -115,6 +115,7 @@ psfiles.each do |file| end symbols.each{|x| x.chomp!} presym_file="#{MRUBY_ROOT}/build/presym" +presym_inc="#{presym_file}.inc" op_table = { "!" => "not", "!=" => "neq", @@ -189,11 +190,11 @@ file presym_file => cfiles+rbfiles+psfiles+[__FILE__] do presyms.each{|x| x.chomp!} if presyms != symbols File.write(presym_file, symbols.join("\n")) + Rake::Task[presym_inc].invoke end end -presym_inc=presym_file+".inc" -file presym_inc => presym_file do +task presym_inc do presyms = File.readlines(presym_file) presyms.each{|x| x.chomp!} File.open(presym_inc, "w") do |f| @@ -231,7 +232,7 @@ file presym_inc => presym_file do end desc "preallocated symbols" -task :gensym => presym_inc +task :gensym => presym_file depfiles += MRuby.targets.map { |n, t| t.libraries |
