[all-commits] [llvm/llvm-project] 493766: Frontend: Respect -working-directory when checking...
Steven Wu via All-commits
all-commits at lists.llvm.org
Fri Sep 9 08:57:49 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 493766e068474a80a790ac41c667061229d2262d
https://github.com/llvm/llvm-project/commit/493766e068474a80a790ac41c667061229d2262d
Author: Steven Wu <stevenwu at apple.com>
Date: 2022-09-09 (Fri, 09 Sep 2022)
Changed paths:
M clang/lib/Frontend/CompilerInstance.cpp
M clang/test/Frontend/output-paths.c
Log Message:
-----------
Frontend: Respect -working-directory when checking if output files can be written
Call `FixupRelativePath` when opening output files to ensure that
`-working-directory` is used when checking up front for write failures,
not just when finalizing the files at the end. This also moves the
temporary file into the same directory as the output file.
Reviewed By: benlangmuir
Differential Revision: https://reviews.llvm.org/D95497
More information about the All-commits
mailing list