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

Support conditions for build type #104

Open
mrexodia opened this issue Apr 21, 2023 · 0 comments
Open

Support conditions for build type #104

mrexodia opened this issue Apr 21, 2023 · 0 comments

Comments

@mrexodia
Copy link
Contributor

For multi-config generators there is an annoying thing that you cannot easily make debug/release-only flags. The idea would be:

[target.foo]
type = "executable"
sources = ["..."]
debug.compile-options = ["/DEBUGME"]

This would emit the correct generator expression.

An open question is still how to handle conditional debug flags. Perhaps something like:

[target.foo]
debug = { condition.compile-options = ["/DEBUGME"] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant