C source files are not recompiled when cc-options change
Open
recompilation
type: bug
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
My project has some C files, whose behaviour depends on whether we are compiling the project in debug mode or not. This is accomplished via a `cc-options: -DACCELERATE_DEBUG` in the .cabal file ([see here](https://github.com/AccelerateHS/accelerate/blob/40adaddc1fd7f137f62b99dcb617f5d32671b16c/accelerate.cabal#L416)). However, switching between regular and debug builds does not recompile the C sources (though it does seem to recompile relevant .hs files).
Related: https://github.com/haskell/cabal/issues/4306
Contributor guide
Assessment
This issue has not been assessed yet.