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

Flags per-file-matchers at Release #853

Open
claudiiolima opened this issue Feb 26, 2024 · 3 comments
Open

Flags per-file-matchers at Release #853

claudiiolima opened this issue Feb 26, 2024 · 3 comments

Comments

@claudiiolima
Copy link

Why not use this feature flags-per-test-matchers, with release build too?

@mvandervoord
Copy link
Member

Hi @claudiiolima -- I'm not sure if you're asking if you can set flags for the test executable, or if you want to set flags differently for different parts of the executable? The feature you referenced changes the flags per test executable (not per file). There is only one test executable for a release, so this isn't necessary.

You CAN set the :flags: for the released executable, similar to tests:

:flags:
  :release:
    - --flag
    - -f

If you need to be able to compile different parts of the release differently, I'm just now putting the final touches on the :dependencies plugin, which (among other things) lets you build sub-sections of your release as static libraries. These could have different settings from eachother also.

I hope this answers your question, but if I'm misunderstanding, just say the word. I'm happy to take a look at an example of what you'd like to do. :)

@claudiiolima
Copy link
Author

claudiiolima commented Feb 26, 2024

My idea was about per file matcher, but as you say it was changed for per executable matcher, I didn't understand it before.

But is there a change that per file matcher comes back for release build? I think it is important during development, like changing optimization only in specific files to work better at debug

@mvandervoord
Copy link
Member

You make a good point about optimization changes, etc. Thanks for the thought! I don't think it'll probably make it into the 0.32 release, but our goal is to make this the last "giant release" and have the releases MUCH more frequent after this point. :) I'll leave this issue open so we remember to tackle it!

@claudiiolima claudiiolima changed the title Flags per-matches at Release Flags per-file-matchers at Release Mar 2, 2024
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