Clarification on -pipe in Clang (original) (raw)

Hi,

I noticed clang has an option
% clang --help-hidden | grep “-pipe”
-pipe Use pipes between commands, when possible

But from my understanding, Clang doesn’t really need this option because everything “command” or phase should happen in memory.

On GCC, the option is described:
“Use pipes rather than temporary files for communication between the various stages of compilation. This fails to work on some systems where the assembler is unable to read from a pipe; but the GNU assembler has no trouble.”

Does this behavior translate over to Clang? Can someone clarify if this option is useful today?

Thanks!

jrtc27 April 10, 2025, 10:38pm 2

It’s always ignored.

vixrant April 11, 2025, 9:11pm 3

In that case shouldn’t the help string indicate that the option is ignored?