Skip to content

Commit

Permalink
[DEBUG] Print smt-switch CMake errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoKobalamyne committed Jul 5, 2024
1 parent ba1b039 commit d0856db
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/setup-smt-switch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ if [ ! -d "$DEPS/smt-switch" ]; then
git clone https://github.com/stanford-centaur/smt-switch
cd smt-switch
git checkout -f $SMT_SWITCH_VERSION
git apply "$DIR/../print-error.patch"
./contrib/setup-btor.sh
if [ $cvc5_home = default ]; then
./contrib/setup-cvc5.sh
Expand Down
14 changes: 14 additions & 0 deletions print-error.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index f4eb487..642a2ba 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -7,7 +7,8 @@ function(check_python_module module)
${PYTHON_EXECUTABLE} -c "import ${module}"
RESULT_VARIABLE
RET_MODULE_TEST
- ERROR_QUIET
+ ECHO_RESULT_VARIABLE
+ ECHO_ERROR_VARIABLE
)
set(module_name ${ARGN})
if(NOT module_name)

0 comments on commit d0856db

Please sign in to comment.