-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use common Cadical dependency for various solvers (#350)
* Add setup script for Cadical * Use same cadical library for cvc5 and boolector * Add symlink to setup-cadical.sh in ci-scripts * Make install command macOS-compatible * Install cadical headers
- Loading branch information
1 parent
2da835b
commit 363d617
Showing
7 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../contrib/setup-cadical.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
CADICAL_VERSION=rel-1.7.4 | ||
|
||
SCRIPT_NAME="$(basename "${BASH_SOURCE[0]}")" | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" | ||
DEPS_DIR="$ROOT_DIR/deps" | ||
|
||
# Download | ||
mkdir -p "$DEPS_DIR" | ||
cd $DEPS_DIR | ||
if [[ ! -d "cadical" ]]; then | ||
git clone https://github.com/arminbiere/cadical | ||
fi | ||
|
||
# Build | ||
cd cadical | ||
git checkout $CADICAL_VERSION | ||
if [[ -d "build" ]]; then | ||
echo "$SCRIPT_NAME: $DEPS_DIR/cadical/build exists, skipping configure step" | ||
else | ||
CXXFLAGS=-fPIC ./configure | ||
fi | ||
make | ||
|
||
# Install | ||
mkdir -p "$DEPS_DIR/install/lib" | ||
install -m644 "build/libcadical.a" "$DEPS_DIR/install/lib" | ||
mkdir -p "$DEPS_DIR/install/include" | ||
install -m644 "src/ccadical.h" "$DEPS_DIR/install/include" | ||
install -m644 "src/cadical.hpp" "$DEPS_DIR/install/include" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters