-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Use a temporary directory for temporary object files #3643
Comments
kinke
added a commit
to kinke/ldc
that referenced
this issue
Feb 9, 2021
To prevent conflicts for concurrent LDC processes in the same working dir, resolving ldc-developers#3643. Re-use this for the temporary object files of -run by enforcing -cleanup-obj in that case. Additionally enforcing -oq prevents conflicting filenames in that dir and allows to get rid of previous Module.makeObjectFilenameUnique().
kinke
added a commit
to kinke/ldc
that referenced
this issue
Feb 9, 2021
To prevent conflicts for concurrent LDC processes in the same working dir, resolving ldc-developers#3643. Re-use this for the temporary object files of -run by enforcing -cleanup-obj in that case. Additionally enforcing -oq prevents conflicting filenames in that dir and allows to get rid of previous Module.makeObjectFilenameUnique().
kinke
added a commit
to kinke/ldc
that referenced
this issue
Feb 10, 2021
To prevent conflicts for concurrent LDC processes in the same working dir, resolving ldc-developers#3643. Re-use this for the temporary object files of -run by enforcing -cleanup-obj in that case. Additionally enforcing -oq prevents conflicting filenames in that dir and allows to get rid of previous Module.makeObjectFilenameUnique().
kinke
added a commit
that referenced
this issue
Feb 10, 2021
…3660) To prevent conflicts for concurrent LDC processes in the same working dir, resolving #3643. Re-use this for the temporary object files of -run by enforcing -cleanup-obj in that case. Additionally enforcing -oq prevents conflicting filenames in that dir and allows to get rid of previous Module.makeObjectFilenameUnique().
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With
-cleanup-obj
(e.g., implicitly injected byldmd2 -lib
), LDC should default to placing the temporary object files into a temporary directory (i.e., default-od
value for object files only), not into the current working dir. Otherwise parallel compiler invocations in the same working dir can lead to obscure object file collisions, see atilaneves/reggae#117; DMD doesn't have this problem, andldmd2
shouldn't either.The text was updated successfully, but these errors were encountered: