Commit aab8d22a authored by David Renshaw's avatar David Renshaw Committed by Kenton Varda

Use '-o -' instead of '-o /bin/cat'.

parent f7c5cc2e
...@@ -246,9 +246,8 @@ public: ...@@ -246,9 +246,8 @@ public:
"to use. If <lang> is a simple word, the compiler searches for a plugin " "to use. If <lang> is a simple word, the compiler searches for a plugin "
"called 'capnpc-<lang>' in $PATH. If <lang> is a file path " "called 'capnpc-<lang>' in $PATH. If <lang> is a file path "
"containing slashes, it is interpreted as the exact plugin " "containing slashes, it is interpreted as the exact plugin "
"executable file name, and $PATH is not searched. The special case of " "executable file name, and $PATH is not searched. If <lang> is '-', "
"'/bin/cat' is hardcoded to dump the request to standard output, as " "the compiler dumps the request to standard output.")
"this is a common operation and /bin/cat is not available on all systems.")
.addOptionWithArg({"src-prefix"}, KJ_BIND_METHOD(*this, addSourcePrefix), "<prefix>", .addOptionWithArg({"src-prefix"}, KJ_BIND_METHOD(*this, addSourcePrefix), "<prefix>",
"If a file specified for compilation starts with <prefix>, remove " "If a file specified for compilation starts with <prefix>, remove "
"the prefix for the purpose of deciding the names of output files. " "the prefix for the purpose of deciding the names of output files. "
...@@ -443,7 +442,7 @@ public: ...@@ -443,7 +442,7 @@ public:
} }
for (auto& output: outputs) { for (auto& output: outputs) {
if (kj::str(output.name) == "/bin/cat") { if (kj::str(output.name) == "-") {
writeMessageToFd(STDOUT_FILENO, message); writeMessageToFd(STDOUT_FILENO, message);
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment