llvm-project
fecb127c - [clang-cl][test] Use /Zs to avoid writing unnecessary output files (#204501)

Commit
86 days ago
[clang-cl][test] Use /Zs to avoid writing unnecessary output files (#204501) #194779 adds a test clang/test/Preprocessor/init-datetime-macros.c which verifies some diagnostics. However, it does so with `/c`, which will unnecessarily generate an output, and when run on a build system that does not run tests in a writeable dir by default, will cause the test to fail. Since we don't care about the resulting object file, use `/Zs` (equivalent of `-fsyntax-only`) to check the diagnostics but not produce any output files.
Author
Parents
Loading