Specify output location of bench executable #946
Closed
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.
This will build the benchmark executable as
./bin.v2/benchinstead ofbin.v2/libs/json/bench/clang-linux-14/release/cxxstd-20-iso/link-static/bench. By outputting the exe in the same place each time (similar to how b2 generates it's own file as./b2) it is easier to find and won't change later.It would be more convenient if the output locations were
./bin.v2/clang/benchand./bin.v2/gcc/bench. That requires knowing the 'toolset'. Interestingly from the faqs, "How do I get the current value of feature in Jamfile? This is not possible, since Jamfile does not have "current" value of any feature, be it toolset, build variant or anything else. " $(toolset) doesn't have a value. We can't define the output location to be./bin.v2/$(toolset)/benchAfter merging this into develop branch
runbenchmarks.pywill break. I will need to modify the script, manually copybenchinto./bin.v2/clang/benchand./bin.v2/gcc/bench, and run benchmarks from there. @grisumbras if it looks ok, go ahead and merge.