Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emscripten can overwrite its own outputs #13729

Closed
walkingeyerobot opened this issue Mar 21, 2021 · 0 comments · Fixed by #13735
Closed

emscripten can overwrite its own outputs #13729

walkingeyerobot opened this issue Mar 21, 2021 · 0 comments · Fixed by #13735
Assignees

Comments

@walkingeyerobot
Copy link
Collaborator

If someone passes -o foo.js --oformat=html, emscripten will attempt to first write the js to foo.js, and then overwrite it with the html.

If emscripten is going to write to a file, it should make sure that file is first empty.

I don't think this is a huge deal, but it came up when working with the bazel toolchain (specifically in emscripten-core/emsdk#765)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants