Skip to content

Commit 45ab677

Browse files
committed
[NFC] Fix Z3 version detection regexp
Summary: We use the `major.minor.build` version format in this file, except when we try to parse the result of the test binary. In that regular expression, we expect the `major.minor.build.rev` format, which is never fulfilled. Reviewers: NoQ, george.karpenkov, alexandre.isoard, serge-sans-paille Reviewed By: NoQ Subscribers: mgorny, mikhail.ramalho, Charusso, martong, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76837
1 parent 76975c7 commit 45ab677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/modules/FindZ3.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function(check_z3_version z3_include z3_lib)
2727
)
2828

2929
if(Z3_COMPILED)
30-
string(REGEX REPLACE "([0-9]*\\.[0-9]*\\.[0-9]*\\.[0-9]*)" "\\1"
30+
string(REGEX REPLACE "([0-9]*\\.[0-9]*\\.[0-9]*)" "\\1"
3131
z3_version "${SRC_OUTPUT}")
3232
set(Z3_VERSION_STRING ${z3_version} PARENT_SCOPE)
3333
endif()

0 commit comments

Comments
 (0)