diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-12 18:42:33 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:20:49 +0900 |
| commit | b3db34c2a8323acd6035f439a2e32d8ab66614c2 (patch) | |
| tree | 44fc2e1b5acef4005b1c4d68c6818c8bf9bf0ea1 | |
| parent | 6b7c12f523147afc4097455511010e048cca237f (diff) | |
| download | mruby-b3db34c2a8323acd6035f439a2e32d8ab66614c2.tar.gz mruby-b3db34c2a8323acd6035f439a2e32d8ab66614c2.zip | |
Remove `presym` files before writing just to make sure.
| -rw-r--r-- | Rakefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -131,6 +131,7 @@ file presym_file => cfiles+rbfiles do symbols = (csymbols+rbsymbols).flatten.uniq.sort presyms = File.readlines(presym_file, chomp: true) rescue [] if presyms != symbols + rm_f presym_file File.write(presym_file, symbols.join("\n")) end end @@ -138,6 +139,7 @@ end presym_inc=presym_file+".inc" file presym_inc => presym_file do presyms = File.readlines(presym_file, chomp: true) + rm_f presym_inc File.open(presym_inc, "w") do |f| f.print "/* MRB_PRESYM_CSYM(sym, num) - symbol which is valid C id name */\n" f.print "/* MRB_PRESYM_SYM(sym, num) - symbol which is not valid C id */\n\n" |
