Skip to content
Snippets Groups Projects
Commit 9cb2cf10 authored by Diego Biurrun's avatar Diego Biurrun
Browse files

Revert unconditional config.h overwriting, it may cause unnecessary rebuilds.

Originally committed as revision 5020 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 171c4076
No related branches found
No related tags found
No related merge requests found
...@@ -1939,7 +1939,13 @@ for codec in $CODEC_LIST ; do ...@@ -1939,7 +1939,13 @@ for codec in $CODEC_LIST ; do
echo "CONFIG_`echo $codec | tr a-z A-Z`=yes" >> config.mak echo "CONFIG_`echo $codec | tr a-z A-Z`=yes" >> config.mak
done done
mv -f $TMPH config.h # Do not overwrite config.h if unchanged to avoid superfluous rebuilds.
diff $TMPH config.h >/dev/null 2>&1
if test $? -ne 0 ; then
mv -f $TMPH config.h
else
echo "config.h is unchanged"
fi
rm -f $TMPO $TMPC $TMPE $TMPS $TMPH rm -f $TMPO $TMPC $TMPE $TMPS $TMPH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment