File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,18 @@ fn get_current_working_dir() -> std::io::Result<PathBuf> {
8
8
env:: current_dir ( )
9
9
}
10
10
11
- // Passed by the top-level CMakeLists.txt to control which version of the
12
- // static library of CBMC we're linking against. A user can also change the
13
- // environment variable to link against different versions of CBMC.
11
+ // Initially passed by the top-level CMakeLists.txt to control which version
12
+ // of the static library of CBMC we were linking against. Staying in order to
13
+ // allow users to be able to easily change the version of the CBMC static
14
+ // library that's being looked up.
14
15
fn get_cbmc_version ( ) -> Result < String , VarError > {
15
16
env:: var ( "CBMC_VERSION" )
16
17
}
17
18
18
- // Passed by the top-level CMakeLists.txt to control where the static library we
19
- // link against is located. A user can also change the location of the library
20
- // on their system by supplying the environment variable themselves.
19
+ // Initially passed by the top-level CMakeLists.txt to control where the static
20
+ // library we link against was located. Now staying for backward compatibility of
21
+ // the build system, and to allow fine grained control for a user as to where the
22
+ // static library is located (be it in a build folder or a system `/lib` folder).
21
23
fn get_lib_directory ( ) -> Result < String , VarError > {
22
24
env:: var ( "CBMC_LIB_DIR" )
23
25
}
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ pub mod ffi_util {
85
85
}
86
86
}
87
87
88
- // To test run "CBMC_LIB_DIR=<path_to_build/libs> SAT_IMPL=minisat2 cargo test -- --test-threads=1 --nocapture"
88
+ // To test run "CBMC_LIB_DIR=<path_to_build/libs> CBMC_VERSION=<version> cargo test -- --test-threads=1 --nocapture"
89
89
#[ cfg( test) ]
90
90
mod tests
91
91
use super :: * ;
You can’t perform that action at this time.
0 commit comments