Sure.
What is the proper way to write code that depends on clang host without
using the #defines?



2015-07-13 19:57 GMT+03:00 Joerg Sonnenberger <jo...@britannica.bec.de>:

> On Mon, Jul 13, 2015 at 06:54:50PM +0300, Yaron Keren wrote:
> > --- tools/clang/lib/Driver/MinGWToolChain.cpp (revision 242033)
> > +++ tools/clang/lib/Driver/MinGWToolChain.cpp (working copy)
> > @@ -24,8 +24,10 @@
> >      : ToolChain(D, Triple, Args) {
> >    getProgramPaths().push_back(getDriver().getInstalledDir());
> >
> > +  llvm::SmallString<1024> LibDir;
> >    if (getDriver().SysRoot.size())
> >      Base = getDriver().SysRoot;
> > +#ifdef LLVM_ON_WIN32
> >    else if (llvm::ErrorOr<std::string> GPPName =
>
> Please don't introduce such conditionals.
>
> Joerg
>
_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to