Skip to content

Commit 09649e4

Browse files
authored
Update build.sh; introduce version (#82)
Set version/commit hash in the build Without this step ``hc --version" always returns ``unknown`` hylo-lang/hylo#1434 This is performed in hylo's CI/CD pipeline but since we do a manual build, it has to be explicitly performed. This might be helpful when reporting issues to hylo or CE.
1 parent afa9594 commit 09649e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hylo/build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ git clone -q --depth 1 --single-branch --recursive -b "${BRANCH}" "${URL}" "hylo
3838
cd "hylo-${VERSION}"
3939
swift package resolve
4040
.build/checkouts/Swifty-LLVM/Tools/make-pkgconfig.sh /usr/local/lib/pkgconfig/llvm.pc
41+
./Tools/set-hc-version.sh
4142
swift build --static-swift-stdlib -c release --product hc
4243

4344
# Copy all shared object dependencies into the release directory to create a hermetic build, per

0 commit comments

Comments
 (0)