summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-11-22 22:38:33 +0900
committerGitHub <[email protected]>2020-11-22 22:38:33 +0900
commit2d9bf22730d69b0450b47421bc23146e23dc1ebf (patch)
treeff306ac37e6ed3e5d810db33ea3c59249803ccd3 /Rakefile
parent17532874a89157e7d48f4ef23da6f780dfb2cbe7 (diff)
parent2a97e97db49533a37b341bb58545cc2ed1630b59 (diff)
downloadmruby-2d9bf22730d69b0450b47421bc23146e23dc1ebf.tar.gz
mruby-2d9bf22730d69b0450b47421bc23146e23dc1ebf.zip
Merge pull request #5173 from shuujii/refine-build-log-for-generated-files
Refine build log for generated files
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index caabd8bac..503fbc5c5 100644
--- a/Rakefile
+++ b/Rakefile
@@ -195,6 +195,7 @@ file presym_file => cfiles+rbfiles+psfiles+[__FILE__] do
presyms = File.readlines(presym_file) rescue []
presyms.each{|x| x.chomp!}
if presyms != symbols
+ _pp "GEN", presym_file.relative_path
File.write(presym_file, symbols.join("\n"))
Rake::Task[presym_inc].invoke
end
@@ -207,6 +208,7 @@ task presym_inc do
prefix_re = Regexp.union(*symbol_to_macro.keys.uniq.map(&:first))
suffix_re = Regexp.union(*symbol_to_macro.keys.uniq.map(&:last))
macro_re = /\A(#{prefix_re})?([\w&&\D]\w*)(#{suffix_re})?\z/o
+ _pp "GEN", presym_inc.relative_path
File.open(presym_inc, "w") do |f|
f.puts "/* MRB_PRESYM_NAMED(lit, num, type, name) */"
f.puts "/* MRB_PRESYM_UNNAMED(lit, num) */"