Hi,

Giving your patch a try, I see minor format differences with what gcc does. I 
prefer your format :o). So it look good.

How complex is it to support -MM which only generates dependencies for includes 
mentioned in your source file?

gcc -MM
Show dependencies of compilation units, excluding system header files. The 
printed output of dependencies is suitable to be copy-pasted into a Makefile.

In this case, you should also support -M option which is what you currently do.

gcc -M
Show dependencies of compilation units, including system header files. The 
printed output of dependencies is suitable to be copy-pasted into a Makefile.

C.

-----Original Message-----
From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On 
Behalf Of bauen1 via Tinycc-devel
Sent: Saturday, February 01, 2020 12:08
To: tinycc-devel@nongnu.org
Cc: bauen1
Subject: [Tinycc-devel] Add -MP option

Hi,

While looking into ways to improve my build system (prevent it from breaking 
when moving headers) I came across the -MP option.

Since tcc currently doesn't support I've written a small patch to enable it.

Please note that tcc's '-MP' implies '-MD' while gcc complains.

- bauen1





_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to