Skip to content

Conversation

jplehr
Copy link
Contributor

@jplehr jplehr commented Mar 4, 2025

As pointed out in #402 the former solution deleted the CWD from within that directory, rendering the state quite useless and resulting in errors on execution.

The approach in here creates a temp directory, changes to it, removes the old CWD, recreates it, and changes back to that directory. I opted for this solution as, oddly enough, I had some trouble removing the
enumerated list of files in the buildtree.

As pointed out in llvm#402 the former
solution deleted the CWD from within that directory, rendering the state
quite useless and resulting in errors on execution.

The approach in here creates a temp directory, changes to it, removes
the old CWD, recreates it, and changes back to that directory. I opted
for this solution as, oddly enough, I had some trouble removing the
  enumerated list of files in the buildtree.
@jplehr jplehr requested review from Meinersbur, jhuber6 and ronlieb March 4, 2025 21:14
@jplehr jplehr merged commit 2ad3598 into llvm:main Mar 4, 2025
2 checks passed
jplehr added a commit that referenced this pull request Mar 4, 2025
@Meinersbur
Copy link
Member

One could also have deleted all the contents of the directory, instead the directory itself.

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 this pull request may close these issues.

3 participants