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

[Bazel] [Potential solution] Cannot build multiple emscripten binaries in parallel with bazel #1386

Closed
kalmard0 opened this issue May 21, 2024 · 1 comment · Fixed by #1415
Assignees

Comments

@kalmard0
Copy link
Contributor

On bazel with sandboxing disabled (or when not available, e.g. Windows), multiple parallel binaries will fail to build due to a shared file being written by the compiler: tmp.tar.

This filename comes from

cmd = ['tar', 'cf', 'tmp.tar'] + files

I believe this can be easily solved by changing tmp.tar to a filename that includes the current build rule's name, to make it unique. But I haven't managed to test this.

@walkingeyerobot
Copy link
Collaborator

That sounds like a reasonable solution. I'm happy to accept a PR that renames tmp.tar.

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