Created attachment 19669
Code demonstrating the problem
It seems that clang::tooling::ToolInvocation erases -fno-lto and always creates
2 compilation jobs for any single file (the second job being link to libLTO).
The result is that clang::tooling::ToolInvocation always fails with the message
"unable to handle compilation, expected exactly one compiler job".
I am attempting to compile code from a string, and this seems to be the way it
is done. I cannot get code to work either from a virtual file or from a real
file. I have working code for real files using Driver based on Examples/clang-
interpreter.
Error seems to occur on 5.0 and 7.0. All tests for both 5.0 and 7.0 (from check-
clang) seem to pass as expected.
Attached file with code.
Asher
toolinvocationerror.cpp
(3833 bytes, text/x-csrc)