diff options
author | JF Bastien <github@jfbastien.com> | 2016-03-31 15:12:04 -0700 |
---|---|---|
committer | JF Bastien <github@jfbastien.com> | 2016-03-31 15:12:04 -0700 |
commit | d0ae4a2d778a92be712d3f510f94273bb3e394da (patch) | |
tree | f4b93a76d16bb5d824197f6d77fa549ddaf9ce70 /src/asm2wasm-main.cpp | |
parent | 57bd72bee0153ad41c9e4f9441cd2cf19ab89d81 (diff) | |
parent | 286b5bebd2c2f9bfe66b84b9b258c63afaac89f1 (diff) | |
download | binaryen-d0ae4a2d778a92be712d3f510f94273bb3e394da.tar.gz binaryen-d0ae4a2d778a92be712d3f510f94273bb3e394da.tar.bz2 binaryen-d0ae4a2d778a92be712d3f510f94273bb3e394da.zip |
Merge pull request #303 from WebAssembly/binary-files-for-windows
Set the binary bit on files we need to open in binary mode
Diffstat (limited to 'src/asm2wasm-main.cpp')
-rw-r--r-- | src/asm2wasm-main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asm2wasm-main.cpp b/src/asm2wasm-main.cpp index 56e8a417f..3e4c40ddc 100644 --- a/src/asm2wasm-main.cpp +++ b/src/asm2wasm-main.cpp @@ -77,7 +77,7 @@ int main(int argc, const char *argv[]) { Asm2WasmPreProcessor pre; auto input( - read_file<std::vector<char>>(options.extra["infile"], options.debug)); + read_file<std::vector<char>>(options.extra["infile"], false, options.debug)); char *start = pre.process(input.data()); if (options.debug) std::cerr << "parsing..." << std::endl; @@ -101,7 +101,7 @@ int main(int argc, const char *argv[]) { } if (options.debug) std::cerr << "printing..." << std::endl; - Output output(options.extra["output"], options.debug); + Output output(options.extra["output"], false, options.debug); printWasm(&wasm, output.getStream()); if (mappedGlobals) { |