Skip to content

Commit 9cea288

Browse files
authored
[release] Fix version extraction in export.sh (llvm#85328)
The LLVM_VERSION_* variables were moved to a new file in 81e2047.
1 parent e5b20c8 commit 9cea288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/release/export.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export_sources() {
8484
# Determine the release by fetching the version from LLVM's CMakeLists.txt
8585
# in the specified git ref.
8686
if [ -n "$snapshot" ]; then
87-
release=$(git -C $llvm_src_dir show $snapshot:llvm/CMakeLists.txt | grep -ioP 'set\(\s*LLVM_VERSION_(MAJOR|MINOR|PATCH)\s\K[0-9]+' | paste -sd '.')
87+
release=$(git -C $llvm_src_dir show $snapshot:cmake/Modules/LLVMVersion.cmake | grep -ioP 'set\(\s*LLVM_VERSION_(MAJOR|MINOR|PATCH)\s\K[0-9]+' | paste -sd '.')
8888
fi
8989

9090
tag="llvmorg-$release"

0 commit comments

Comments
 (0)