This happens in createInvocationWithCommandLine but only clangd currently passes
ShouldRecoverOnErorrs (sic).
One cause of this (with correct command) is several -arch arguments for mac
multi-arch support.
Differential D107632
[clangd] Avoid "expected one compiler job" by picking the first eligible job. sammccall on Aug 6 2021, 3:07 AM. Authored by
Details This happens in createInvocationWithCommandLine but only clangd currently passes One cause of this (with correct command) is several -arch arguments for mac
Diff Detail
Event Timeline
Comment Actions thanks, lgtm!
|
maybe move this test to clang/unittests/Frontend/ASTUnitTest.cpp? someone might send a patch to handle -arch specifically in clangd and it would no longer be possible to test this behaviour :)
(another option would be to test this through some other flags that'll trigger multiple compiler invocations, but I don't have any on top of my head)