Skip to content
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

Adding -g to compiler options and saying make only regenerates Makefile, doesn't rebuild targets #52

Open
ben0x539 opened this issue Jan 30, 2016 · 5 comments
Milestone

Comments

@ben0x539
Copy link

No description provided.

@jimporter
Copy link
Owner

Fair point. I'm not sure what the best way to handle this is, though.

@jimporter jimporter added this to the future milestone Jan 30, 2016
@refi64
Copy link

refi64 commented Jan 30, 2016

What if each target depends on the Makefile? Like:

a : a.c Makefile

or something.

@jimporter
Copy link
Owner

But then literally almost every change to build.bfg would trigger a full rebuild. That might be the right way to do things, but I'd have to convince myself there's not a better way.

@jimporter
Copy link
Owner

Oh, I should note, this only applies to Make. Ninja works fine: "Outputs implicitly depend on the command line that was used to generate them, which means that changing e.g. compilation flags will cause the outputs to rebuild."

Always Be Using Ninja. :)

@jimporter
Copy link
Owner

jimporter commented Mar 26, 2017

This is probably the right way to fix this issue: https://www.cmcrossroads.com/article/rebuilding-when-cppflags-changes

I might be able to simplify it since I can do arbitrary stuff during configuration.

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

No branches or pull requests

3 participants