¿Bandera Clang para suprimir la creación de archivos?

Is there a CLI flag for clang that will go through the entire compilation process, including assembling and linking, printing all errors or warnings, but will not create files on the disk?

In particular, I don't need any .out files, nor object (.o) archivos.

preguntado el 27 de noviembre de 13 a las 05:11

1 Respuestas

When you're generating a single file, you can use the -o option to choose the output file, so -o /dev/null will just get rid of the output without generating any file. You'll still get warnings and errors printed to stderr.

This works in both gcc and clang.

respondido 27 nov., 13:07

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.