This patch https://reviews.llvm.org/D102876 caused some lit regressions on z/OS because tmp files were no longer being opened based on binary/text mode. This patch passes OpenFlags when creating tmp files so we can open files in different modes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I see, thanks.
llvm/lib/Support/Path.cpp | ||
---|---|---|
1295 | Instead of requiring the caller to add OF_Delete, I think it would be better to pass OF_Delete | Flags here. |
llvm/lib/Support/Path.cpp | ||
---|---|---|
1295 | Sure, I'll make that change. Do you think we should change the name to "ExtraFlags" to indicate there is a default, or is the current name is fine? |
llvm/lib/Support/Path.cpp | ||
---|---|---|
1295 | That seems reasonable to me, I like ExtraFlags. |
Instead of requiring the caller to add OF_Delete, I think it would be better to pass OF_Delete | Flags here.