Skip to content

C source files are not recompiled when cc-options change #4937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tmcdonell opened this issue Dec 6, 2017 · 1 comment
Open

C source files are not recompiled when cc-options change #4937

tmcdonell opened this issue Dec 6, 2017 · 1 comment

Comments

@tmcdonell
Copy link

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). However, switching between regular and debug builds does not recompile the C sources (though it does seem to recompile relevant .hs files).

Related: #4306

tmcdonell added a commit to tmcdonell/accelerate that referenced this issue Dec 8, 2017
C source files are not being recompiled when cc-options change, but we can work around that with a super ugly hack \:

haskell/cabal#4937
@ezyang
Copy link
Contributor

ezyang commented Dec 30, 2017

Yes, the recomp avoidance logic for C files is just... bad. Improvements would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants