1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add file mode to generated files [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2019-11-08 16:37:42 +09:00
parent 99b1c19be4
commit 2e29b65109
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
2 changed files with 8 additions and 0 deletions

View file

@ -17,6 +17,13 @@ RubyVM::each_builtin{|feature, iseq|
$stdout = open('builtin_binary.inc', 'wb')
puts <<H
// -*- c -*-
// DO NOT MODIFY THIS FILE DIRECTLY.
// auto-generated file by #{File.basename(__FILE__)}
H
ary.each{|feature, iseq|
puts "static const unsigned char #{feature}_bin[] = {"
dump_bin(iseq)

View file

@ -36,6 +36,7 @@ def mk_builtin_header file
collect_builtin(RubyVM::InstructionSequence.compile_file(file, false).to_a, bs = {})
open(ofile, 'w'){|f|
f.puts "// -*- c -*-"
f.puts "// DO NOT MODIFY THIS FILE DIRECTLY."
f.puts "// auto-generated file"
f.puts "// by #{__FILE__}"