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:
parent
99b1c19be4
commit
2e29b65109
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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__}"
|
||||
|
|
Loading…
Add table
Reference in a new issue