fix: write .c output file in binary mode for reproducibility

This commit is contained in:
Sebastian Ullrich 2021-09-15 14:41:07 +02:00
parent 23c3dc335b
commit da516f5aa7

View file

@ -644,7 +644,7 @@ extern "C" int lean_main(int argc, char ** argv) {
}
if (c_output && ok) {
std::ofstream out(*c_output);
std::ofstream out(*c_output, std::ios_base::binary);
if (out.fail()) {
std::cerr << "failed to create '" << *c_output << "'\n";
return 1;