diff options
author | Alexandre Ganea <aganea@havenstudios.com> | 2024-05-24 17:20:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-24 17:20:08 -0400 |
commit | 90e33e20a594b8a404af1df93b629137cb605a21 (patch) | |
tree | 9d2181c877add6399ce88a9725010b214474ad26 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 56c5ca8f6670a29dc726d65e24fde7dc047b04c3 (diff) | |
download | llvm-90e33e20a594b8a404af1df93b629137cb605a21.zip llvm-90e33e20a594b8a404af1df93b629137cb605a21.tar.gz llvm-90e33e20a594b8a404af1df93b629137cb605a21.tar.bz2 |
[clang-scan-deps] Expand response files before the argument adjuster (#89950)
Previously, since response (.rsp) files weren't expanded at the very
beginning of clang-scan-deps, we only parsed the command-line as
provided in the Clang .cdb file. Unfortunately, when using Unreal
Engine, arguments are always generated in a .rsp file (ie.
`/path/to/clang-cl.exe @/path/to/filename_args.rsp`).
After this patch, `/Fo` can be parsed and added to the final
command-line. Without this option, the make targets that are emitted are
made up from the input file name alone. We have some cases where the
same input in the project generates several output files, so we end up
with duplicate make targets in the scan-deps emitted dependency file.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions