From 286b5bebd2c2f9bfe66b84b9b258c63afaac89f1 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 31 Mar 2016 11:10:46 -0700 Subject: set the binary bit on files we need to open in binary mode --- src/s2wasm-main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/s2wasm-main.cpp') diff --git a/src/s2wasm-main.cpp b/src/s2wasm-main.cpp index 40009cbc9..59258cfd5 100644 --- a/src/s2wasm-main.cpp +++ b/src/s2wasm-main.cpp @@ -74,7 +74,7 @@ int main(int argc, const char *argv[]) { }); options.parse(argc, argv); - auto input(read_file(options.extra["infile"], options.debug)); + auto input(read_file(options.extra["infile"], false, options.debug)); if (options.debug) std::cerr << "Parsing and wasming..." << std::endl; AllocatingModule wasm; @@ -103,7 +103,7 @@ int main(int argc, const char *argv[]) { s2wasm.emscriptenGlue(meta); 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()); output << meta.str() << std::endl; -- cgit v1.2.3