Skip to content

Commit b630cc5

Browse files
committed
Document steps to perform CMake configuration without network access
Build environments may be configured in a way that disallows network access. The make-based build system already supported this as downloading and building solvers is a separate step. For CMake, document the procedure to facilitate this. Fixes: #6582
1 parent c351198 commit b630cc5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

COMPILING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ files.
8282
to generate IDE projects by supplying the `-G` flag. Run `cmake -G` for a
8383
comprehensive list of supported back-ends.
8484
85+
As part of this step, CMake will download the back-end solver (see Section
86+
"Compiling with alternative SAT solvers" in this document for configuration
87+
options). Should it be necessary to perform this step without network access,
88+
a solver can be downloaded ahead of the above `cmake` invocation as follows:
89+
```
90+
mkdir -p build/minisat2-download/minisat2-download-prefix/src/
91+
wget http://ftp.debian.org/debian/pool/main/m/minisat2/minisat2_2.2.1.orig.tar.gz \
92+
-O build/minisat2-download/minisat2-download-prefix/src/minisat2_2.2.1.orig.tar.gz
93+
```
94+
8595
On macOS >10.14, the build will fail unless you explicitly specify
8696
the full path to the compiler. This issue is being tracked
8797
[here](https://github.com/diffblue/cbmc/issues/4956). The invocation thus

0 commit comments

Comments
 (0)