Include build configuration info in the greeting#55
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
We've previously introduced BUILD_CONFIG symbol that has bits dedicated to various configuration options used during the build, the bits are defined and assembled in
core/build-config.inc. This PR adds this information to AmForth and outputs it in the greeting. This is how it looks now:If you set WANT_IGNORECASE, the config value will be
cfg:$00000001I was hoping to emit an interpreted version of this, that would list the selected bits based on this value, at the end of the build process, but there doesn't seem to be any reasonable way to assemble this string during assembly. I gave up.
This PR also includes some cleanup
build-info.tmplwas duplicated in MCU word directories unnecessarily, now there is a single copy of it incore/build-info.tmplwhich defines all the build related wordsbuild-infowas renamed tobuild.timeto reflect what it isrev-infowas renamed tobuild.revto bring the words closer togetherbuild.confignow provides the BUILD_CONFIG value.buildemits the combined build information in a unified way, instead of assembling the bits in individual applturnkey words (all those are now using XT_ENV_DOT_BUILD)verto.verfor consistency