]> git.sesse.net Git - stockfish/commitdiff
Regenerate dependencies on code change
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 15 Aug 2021 13:11:04 +0000 (15:11 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Tue, 17 Aug 2021 19:08:34 +0000 (21:08 +0200)
fixes https://github.com/official-stockfish/Stockfish/issues/3658

dependencies are now regenerated for each code change, this adds some 1s overhead in compile time, but avoids potential miscompilations or build problems.

closes https://github.com/official-stockfish/Stockfish/pull/3659

No functional change

src/Makefile

index c1dab86ba03d85156d1c85034710e5910df47852..901ddd9245344782469bc17395bc47587e4b04f1 100644 (file)
@@ -912,7 +912,7 @@ icc-profile-use:
        EXTRACXXFLAGS='-prof_use -prof_dir ./profdir' \
        all
 
-.depend:
+.depend: $(SRCS)
        -@$(CXX) $(DEPENDFLAGS) -MM $(SRCS) > $@ 2> /dev/null
 
 -include .depend