tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Add -MP option


From: Christian Jullien
Subject: Re: [Tinycc-devel] Add -MP option
Date: Tue, 4 Feb 2020 12:07:59 +0100

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=address@hidden] On 
Behalf Of bauen1 via Tinycc-devel
Sent: Saturday, February 01, 2020 12:08
To: address@hidden
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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]