Replace gcc with clang to keep consistent with section 2.5.1

Submitted by:	Ruey-Cherng Yu <raycherng at gmail.com>
Differential Revision:	https://reviews.freebsd.org/D4678
This commit is contained in:
Kevin Lo 2015-12-23 06:17:19 +00:00
parent 3f3406d0fb
commit cdedc9040f
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=47902

View file

@ -1177,7 +1177,7 @@ int main(....</programlisting>
pain to keep track of all include files and the files which pain to keep track of all include files and the files which
are depending on it. If you change an include-file but are depending on it. If you change an include-file but
forget to recompile all the files which are depending on forget to recompile all the files which are depending on
it, the results will be devastating. <command>gcc</command> it, the results will be devastating. <command>clang</command>
has an option to analyze your files and to produce a list has an option to analyze your files and to produce a list
of include-files and their dependencies: <option>-MM</option>. of include-files and their dependencies: <option>-MM</option>.
</para> </para>
@ -1185,7 +1185,7 @@ int main(....</programlisting>
<para>If you add this to your Makefile:</para> <para>If you add this to your Makefile:</para>
<programlisting>depend: <programlisting>depend:
gcc -E -MM *.c &gt; .depend</programlisting> cc -E -MM *.c &gt; .depend</programlisting>
<para>and run <userinput>make depend</userinput>, the file <para>and run <userinput>make depend</userinput>, the file
<filename>.depend</filename> will appear with a list of <filename>.depend</filename> will appear with a list of