Branch: refs/heads/main
Revision: 1b3749c
Author: mppf
Link: Unavailable
Log Message:
Merge pull request #20070 from mppf/build-version-sha
Don't include sha in version if officialRelease
Testing:
- It prints out
1.27.0 pre-release (edda1bb5eb)
, without other
changes, regardless of--devel
- If I disable the
BUILD_VERSION_FILE
rule incompiler/Makefile
and
setofficialRelease = true
incompiler/main/version_num.h
, and
then store"1"
incompiler/main/BUILD_VERSION
;chpl --version
prints out1.27.0.1
, regardless of--devel
or not. - If I do the same as the above but store the
"0"
as the
BUILD_VERSION
thenchpl --version
prints out1.27.0
, regardless
of--devel
or not. - If I let
compiler/Makefile
updateBUILD_VERSION_FILE
and have set
officialRelease = true
incompiler/main/version_num.h
, it prints
out1.27.0
without--devel
and1.27.0.edda1bb5eb
with
--devel
. - passed full local testing
Future Work:
- split
BUILD_VERSION
into two files, e.g.BUILD_VERSION
and
SHA_VERSION
; that wayBUILD_VERSION
can always be set by a person
butSHA_VERSION
can always be computed by the Makefiles.
Reviewed by @ronawho and discussed with @bradcray - thanks!
Modified Files:
M compiler/main/version.cpp
Compare: https://github.com/chapel-lang/chapel/compare/ea0b3bcc5d69...1b3749c8970e