Skip to content

Recompilation avoidance doesn't work with -dynamic-too

Summary

Recompilation avoidance doesn't work correctly when we use -dynamic-too.

Steps to reproduce

> ghc Test.hs -c -dynamic-too
> ls Test.dyn_*
Test.dyn_hi  Test.dyn_o
> rm Test.dyn*
> ghc Test.hs -c -dynamic-too
compilation IS NOT required
> ls Test.dyn_*
Test.dyn_o
> file Test.dyn_o
Test.dyn_o: empty

Expected behavior

GHC should produce valid .dyn_o and .dyn_hi artifacts.

Environment

  • GHC version used: 8.8.3
Edited by Ömer Sinan Ağacan
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information