fix: write .c output file in binary mode for reproducibility
This commit is contained in:
parent
23c3dc335b
commit
da516f5aa7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue