What happened to -optdep option?
bertram.felgenhauer at googlemail.com
Thu May 5 22:35:01 UTC 2016
Volker Wysk wrote:
> I'm using GHC 7.10.3 after an upgrade. I have the following in my Makefile:
> depend_mod :: lib/abh
> ghc -M $(CFLAGS_GHC_0) -dep-makefile -optdepbuild/depend.tmp -dep-suffix "p_"
You should drop the -optdep here
> $(foreach m, $(MOD_HS) $(PROG_HS), src/$(m).hs) \
> $(foreach m, $(MOD_CHS) $(PROG_CHS), build/$(m).hs)
> This used to work. The previous GHC version was 7.8.
As a side effect of finally removing the -optdep-f flag,
(another relevant commit is 994d5e3cfc32cb624b63683205dd8fd876171d0c)
the code that strips -optdep from the filename, which was required to
make -optdep-f -optdepfoo work, also got removed. The fact that
-dep-makefile continued to strip -optdep was an accident in my view.
More information about the Glasgow-haskell-users