Commit 0c77a81
committed
[AMDGPU] Change CWD from within tmp directory
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.1 parent 872f477 commit 0c77a81
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
0 commit comments