[all-commits] [llvm/llvm-project] 9ae11a: [Driver] Add `--` to some test clang-cl command li...
Simon Tatham via All-commits
all-commits at lists.llvm.org
Wed Oct 25 00:27:19 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9ae11a5bacb781f6899861ab2197a8cd711c5e6c
https://github.com/llvm/llvm-project/commit/9ae11a5bacb781f6899861ab2197a8cd711c5e6c
Author: Simon Tatham <simon.tatham at arm.com>
Date: 2023-10-25 (Wed, 25 Oct 2023)
Changed paths:
M clang/test/Driver/cl-offload.cu
Log Message:
-----------
[Driver] Add `--` to some test clang-cl command lines. (#70055)
If clang/test/Driver/cl-offload.cu is run on Unix in a directory whose
absolute pathname starts with `/w`, such as the `/workspace` used by at
least some Jenkins CI setups, then the file name on the clang command
line is misinterpreted as some kind of MSVC warning-control option, and
ignored by the catch-all `_SLASH_w` option in Options.td.
Other clang-cl tests take care to put a `--` before the input file name,
to force clang to treat it as a filename even if it starts with a / and
accidentally looks like a cl option. Do the same here.
More information about the All-commits
mailing list