For ml.exe, /Zs implies a syntax check with no output files.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
The unrelated change looks a) unrelated b) incorrect.
No test?
Can we drop -filetype=nul now that we have this?
llvm/tools/llvm-ml/llvm-ml.cpp | ||
---|---|---|
77 | mention this change in cl description, add test for it ....but I don't think this change is correct? C:\src>ml64 foo.asm /c /foasdf.obj /nologo Microsoft (R) Macro Assembler (x64) Version 14.25.28614.0 Copyright (C) Microsoft Corporation. All rights reserved. Assembling: foo.asm MASM : warning A4018:invalid command-line option : /foasdf.obj |
llvm/tools/llvm-ml/llvm-ml.cpp | ||
---|---|---|
77 | This is correcting us to match ml64; we previously considered /fo equivalent to /Fo, but this was a mistake. However, I'll push it up the stack to the change that introduced the problem instead. |
Still no test, as far as I can tell. I think the suggestion below turns this into a 3-line diff (+ test).
llvm/tools/llvm-ml/Opts.td | ||
---|---|---|
50 | Instead of all the DerivedArgList changes below, doesn't just saying ..., Alias<filetype>, AliasArgs<"none"> here do the same thing? |
Tests added, thanks.
llvm/tools/llvm-ml/Opts.td | ||
---|---|---|
50 | ... yes, and I didn't know that was an option. Fixed - though it did require me to move these below the LLVM-style args, so we could successfully alias it to one of them. Thanks, this is much better! |
Instead of all the DerivedArgList changes below, doesn't just saying ..., Alias<filetype>, AliasArgs<"none"> here do the same thing?