Describe the solution you'd like
Many command line utilities (example xcrun) allow you to do something and finally replace the process with the target process. Maybe xcrun -sdk ios swiftc -c -o iosfile.o iosfile.swift or similar.
To function properly, this requires process replacement, typically using execve on UNIX. I couldn't find an API in Subprocess that would let me run a process in a way that it replaces my own process.
Describe the solution you'd like
Many command line utilities (example
xcrun) allow you to do something and finally replace the process with the target process. Maybexcrun -sdk ios swiftc -c -o iosfile.o iosfile.swiftor similar.To function properly, this requires process replacement, typically using
execveon UNIX. I couldn't find an API in Subprocess that would let meruna process in a way that it replaces my own process.