diff options
Diffstat (limited to 'tool/transform_mjit_header.rb')
-rw-r--r-- | tool/transform_mjit_header.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/transform_mjit_header.rb b/tool/transform_mjit_header.rb index d9744af343..dc5f9e11c1 100644 --- a/tool/transform_mjit_header.rb +++ b/tool/transform_mjit_header.rb @@ -77,7 +77,7 @@ module MJITHeader # Return true if CC with CFLAGS compiles successfully the current code. # Use STAGE in the message in case of a compilation failure def self.check_code!(code, cc, cflags, stage) - Tempfile.open(['', '.c']) do |f| + Tempfile.open(['', '.c'], mode: File::BINARY) do |f| f.puts code f.close unless system("#{cc} #{cflags} #{f.path}", err: File::NULL) |