diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-25 13:42:44 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-25 13:42:44 +0200 |
commit | 565eea9d6d455f60196d37e13b802d5f0e923150 (patch) | |
tree | 9a196154d34ac1cd370f3215e1b0c4b179151831 /Source/JavaScriptCore/offlineasm | |
parent | 3f313d31e279000455e390d6c171d13ef54619af (diff) | |
download | qtwebkit-565eea9d6d455f60196d37e13b802d5f0e923150.tar.gz |
[WIN] Make LLInt offsets extractor work on Windows
https://bugs.webkit.org/show_bug.cgi?id=100369
Reviewed by NOBODY (OOPS!).
Open the input file explicitly in binary mode to prevent ruby/Windows from thinking that
it's a text mode file that needs even new line conversions. The binary mode parameter is
ignored on other platforms.
* offlineasm/offsets.rb:
Diffstat (limited to 'Source/JavaScriptCore/offlineasm')
-rw-r--r-- | Source/JavaScriptCore/offlineasm/offsets.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/JavaScriptCore/offlineasm/offsets.rb b/Source/JavaScriptCore/offlineasm/offsets.rb index cb09918cd..50b963b72 100644 --- a/Source/JavaScriptCore/offlineasm/offsets.rb +++ b/Source/JavaScriptCore/offlineasm/offsets.rb @@ -105,7 +105,7 @@ def offsetsAndConfigurationIndex(file) fileBytes = [] - File.open(file, "r") { + File.open(file, "rb") { | inp | loop { byte = inp.getbyte |