[cfe-users] Clang (with Visual Studio) wrongly complains about missing variables
Jeffrey Walton via cfe-users
cfe-users at lists.llvm.org
Tue Sep 21 05:49:56 PDT 2021
> ...
> I checked this morning and sure enough the "/Ob" option doesn't get sent
> if I build with VS2019 and Clang - so I'm guessing "/Ob0" wouldn't be
> recognised by Clang's compiler?
>
> So does Clang have it's own command-line option to disable inline
> function expansion? Or is that something which hasn't been implemented
> for Clang? Thanks,
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 -?'.
I don't use Clang on Windows, so I'm not really the person to answer
your Windows questions. Sorry about that.
Jeff
More information about the cfe-users
mailing list