[clang] [clang-scan-deps] Expand response files before the argument adjuster (PR #89950)
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 25 14:31:31 PDT 2024
================
@@ -0,0 +1,36 @@
+// Check that the scanner can adjust arguments by reading .rsp files in advance.
+
+// RUN: rm -rf %t
+// RUN: split-file %s %t
+// RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
----------------
jansvoboda11 wrote:
You can now do this: `clang-scan-deps -o %t/deps.json -- %clang_cl <args>`. I guess `<args>` for `clang-cl` specifically cannot contain `%t` since that will begin with `/` on Unix system and cause command line parsing errors. But using relative paths like you currently do and changing directory before running the tools should work a will probably be much cleaner.
https://github.com/llvm/llvm-project/pull/89950
More information about the cfe-commits
mailing list