https://github.com/jhuber6 commented:
I was just about to do something similar, so I'm glad you got to it before me. I think we'll need a CMake check on whether or not `libc` was enabled as a runtime if this option is enabled in `libcxx`, but beyond that it looks very reasonable. All we're doing is suppressing the system includes with `-nostdlibinc` and then adding an interface include to the `libc` targets. https://github.com/llvm/llvm-project/pull/99287 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits