Is there a way to emit c++ header from a swift file so that it doesn't link against the c++ standard library?
Could you elaborate a bit what you mean? The emitted C++ header file is just a header file, you have full control over how you consume it and what the consumers link against.
On the other hand, if your question is whether we support generating a C++ interop header that will not reference anything from the C++ standard library headers, that is unfortunately not supported at the moment.
If this is something you need could you elaborate on why?
Sorry for the delay
Yes, the emitted header file is built with the assumption that c++ standard library linked in, but I was going to use it for embedded development with other c++ files