[all-commits] [llvm/llvm-project] 18b238: [clang] [test] Fix clang-cl unused argument tests ...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Tue Jan 11 02:28:38 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 18b2385f2b09453b5e9d26459ec9e806f5ee7f86
https://github.com/llvm/llvm-project/commit/18b2385f2b09453b5e9d26459ec9e806f5ee7f86
Author: Martin Storsjö <martin at martin.st>
Date: 2022-01-11 (Tue, 11 Jan 2022)
Changed paths:
M clang/test/Driver/diagnostics.c
Log Message:
-----------
[clang] [test] Fix clang-cl unused argument tests on paths that start with /U
This reinstates a test that was temporarily removed in
e26bbae30218a35d76a79fe90b0e41dd0f71b779, in a form that works on
Darwin.
Use -LD instead of -link as a linker argument that is unused when
compiling, that produces warnings normally. -LD can be placed anywhere
in the command line, so that the command line ends with "-- %s", making
paths starting with /U correctly interpreted as paths, not options.
More information about the All-commits
mailing list