nativeLinkReleaseFast and nativeLinkReleaseFull SBT tasks #3391
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently the way to build release fast/full is to either use the environment variables (either built-in or roll your own, which couples the correctness to the global settings you need to get right), or use
set nativeMode := ...
as part of the SBT call - but that necessarily reloads the session and isn't great for interactive use.I think the experience can be improved - the tasks output stable locations of linked binaries, they can be immediately run, it works great with shell history (because of
-release-fast
suffix).In the target folder you immediately see all the binaries with different names, which makes it clear and less error prone when running benchmarks against different configurations. You can also use these tasks to feed into other SBT tasks (running automatic benchmarks for example)