[cfe-users] Clang (with Visual Studio) wrongly complains about missing variables

John Emmas via cfe-users cfe-users at lists.llvm.org
Tue Sep 21 06:24:11 PDT 2021


On 21/09/2021 13:49, Jeffrey Walton wrote:
>
> The U&L option is -fno-inline. But I think Clang has an option to
> consume MSVC style options, so you may be able to use /Ob.
>
> I think you can check which MSVC style options Clang accepts with
> 'clang-cl /?' or 'clang-cl -?'.
>

Thanks again Jeff and you're right... clang-cl /? reveals that it'll 
handle the Microsoft variant of /Ob0

And according to Visual Studio it is sending that option...

So do you happen to know if clang-cl produces some kinda log file (i.e. 
that'd let me see which commands it actually received?)

John


More information about the cfe-users mailing list