zmodem wrote:

> > I've read half the patch so far, but wanted to ask before continuing: would 
> > it be possible (and simpler) to extend the /winsysroot support somehow to 
> > also handle --sysroot?
> > (It would also be easier to review if the unrelated formatting changes were 
> > removed or split to a separate PR.)
> > 
> > * @aganea and @mstorsjo in case you have comments too.
> 
> no. i do not use clang-cl. /winsysroot is not sysroot. /winsysroot is for 
> clang-cl. not clang itself
> 
> sysroot is what the usually the clang and GCC means. That is not a semantics 
> for msvc.
> 
> I have checked the code first clang does not support /winsysroot, second they 
> have very different meanings which make them incompatible. Just use --sysroot 
> because --sysroot matches the behavior of other platforms, including GNU 
> variants of windows targets like x86_64-windows-gnu.
> 
> BTW using --sysroot gives the same semantics for build systems like build 
> tools cmake or xmake.

I didn't mean that you should _use_ `/winsysroot`, I was asking whether 
`--sysroot` and `/winsysroot` could share code for implementation.

https://github.com/llvm/llvm-project/pull/96417
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to