We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cbe8d4 commit fabfcdbCopy full SHA for fabfcdb
metadata-generator/src/Meta/MetaFactory.cpp
@@ -497,7 +497,8 @@ std::string demangleSwiftName(std::string name) {
497
// Otherwise, `swift demange` starts bufferring its stdout when it discovers that its not
498
// in an interactive terminal.
499
using namespace redi;
500
- static const std::string cmd = "script -q /dev/null xcrun swift demangle";
+ // script always pipes stderr to stdout, so ensure to discard stderr through sh
501
+ static const std::string cmd = "script -q /dev/null sh -c 'xcrun swift demangle 2>/dev/null'";
502
static pstream ps(cmd, pstreams::pstdin|pstreams::pstdout|pstreams::pstderr);
503
504
// Send the name to child process
0 commit comments