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

Generating multiple build types in one project #118

Open
dcbaker opened this issue Nov 30, 2022 · 0 comments
Open

Generating multiple build types in one project #118

dcbaker opened this issue Nov 30, 2022 · 0 comments
Labels
difficulty:hard enhancement New feature or request

Comments

@dcbaker
Copy link
Owner

dcbaker commented Nov 30, 2022

I was thinking about this because Visual Studio supports this natively. It's a really hard problem for the reference implementation because of it's implementation details, but I think we could actually solve it fairly easily:

  1. hold off on lowering away buildtype, b_vscrt, b_debug, b_optimisation (and possibly a few others) as long as possible
  2. clone the IR into 4 separate IRs, one for each buildtype
  3. rename all of the targets into foo_{buildtype}
  4. set the default all in ninja to be all_{buildtype}, but the user can run ninja -C builddir all_{different_build_type} to get that instead

profit?

@dcbaker dcbaker added the enhancement New feature or request label Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty:hard enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant