Origami404 added a comment.

In D137043#3935129 <https://reviews.llvm.org/D137043#3935129>, @aaronpuchert 
wrote:

> This include-if-exists mechanism seems brittle to me.

Do you mean the way that we used to test a file and include it (inserting `#if 
__has_include`) is brittle or compilation flags like `--include-if-exists` 
themselves are?

> Can we not make it dependent on the triple, i.e. include the file if we're 
> using a libc implementation that's known to provide (and require) this file?

I am afarid that without depending on triples, we are not able to distinguish 
what environment we are in or libc we use.  Can you explain more about this?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137043/new/

https://reviews.llvm.org/D137043

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to