Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Simplify features #1245

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/mirai_on_mirai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
extra-args: --clean-buildtrees-after-build
- name: Install MIRAI
run: |
cargo install --force --path ./checker --no-default-features --features="z3, use-vcpkg-z3"
cargo install --force --path ./checker --no-default-features --features=vcpkg
- name: Run MIRAI on MIRAI
run: |
cargo mirai --no-default-features
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Execute tests
run: |
cargo test --all --no-default-features --features="z3, use-vcpkg-z3" -- --test-threads=1
cargo test --all --no-default-features --features=vcpkg -- --test-threads=1
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified binaries/summary_store.tar
Binary file not shown.
6 changes: 3 additions & 3 deletions checker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ walkdir = "*"
contracts = { version = "0.6.0", features = ["mirai_assertions"] }

[features]
default = ["z3", "static-link-z3"]
use-vcpkg-z3 = ["z3-sys/vcpkg"]
static-link-z3 = ["z3-sys/static-link-z3"]
default = ["static-link"]
vcpkg = ["z3-sys/vcpkg", "z3"]
static-link = ["z3-sys/static-link-z3", "z3"]
z3 = []

8 changes: 7 additions & 1 deletion install_mirai.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@ set -e
#install mirai into cargo
cargo uninstall -q mirai || true
touch checker/src/lib.rs
cargo install --locked --path ./checker

# Check if dynamic link to vcpkg installed Z3 is wanted rather than static linking
if [ "$1" == "vcpkg" ]; then
cargo install --locked --path ./checker --no-default-features --features=vcpkg
else
cargo install --locked --path ./checker
fi

12 changes: 9 additions & 3 deletions validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

# Exit immediately if a command exits with a non-zero status.
set -e

# Check if dynamic link to vcpkg installed Z3 is wanted rather than static linking
if [ "$1" == "vcpkg" ]; then
FLAGS='--no-default-features --features=vcpkg'
fi

# start clean
cargo clean
cargo update
Expand All @@ -30,12 +36,12 @@ cd ../../..

# Run cargo test, starting clean so that the new summary store is used.
cargo clean
cargo build --tests
time cargo test
cargo build --tests $FLAGS
time cargo test $FLAGS

# Install MIRAI into cargo so that we can use optimized binaries to analyze debug binaries built with special flags
cargo uninstall mirai || true
cargo install --path ./checker
cargo install --path ./checker $FLAGS

# Run mirai on itself, using the optimized build in cargo as the bootstrap.
cargo clean -p mirai
Expand Down
2 changes: 1 addition & 1 deletion vcpkg
Submodule vcpkg updated 53 files
+19 −16 ports/baresip-libre/fix-static-library-build.patch
+2 −2 ports/baresip-libre/portfile.cmake
+1 −1 ports/baresip-libre/vcpkg.json
+49 −0 ports/civetweb/pkgconfig.patch
+12 −11 ports/civetweb/portfile.cmake
+4 −0 ports/civetweb/usage
+1 −0 ports/civetweb/vcpkg.json
+2 −1 ports/dav1d/vcpkg.json
+2 −2 ports/itk/portfile.cmake
+1 −2 ports/itk/vcpkg.json
+16 −15 ports/ktx/0001-Use-vcpkg-zstd.patch
+7 −7 ports/ktx/0004-quirks.patch
+10 −4 ports/ktx/portfile.cmake
+1 −1 ports/ktx/vcpkg.json
+0 −53 ports/libconfig/CMakeLists.txt
+22 −0 ports/libconfig/libconfig++-cmake-export.diff
+16 −40 ports/libconfig/portfile.cmake
+1 −1 ports/libconfig/vcpkg.json
+2 −1 ports/libpcap/portfile.cmake
+1 −0 ports/libpcap/vcpkg.json
+12 −0 ports/matio/portfile.cmake
+5 −0 ports/matio/usage
+1 −1 ports/matio/vcpkg.json
+2 −2 ports/open62541/portfile.cmake
+1 −2 ports/open62541/vcpkg.json
+2 −2 ports/openmpi/portfile.cmake
+1 −2 ports/openmpi/vcpkg.json
+1 −1 ports/quantlib/portfile.cmake
+1 −1 ports/quantlib/vcpkg.json
+1 −1 ports/so5extra/portfile.cmake
+1 −1 ports/so5extra/vcpkg.json
+1 −1 ports/sobjectizer/portfile.cmake
+1 −1 ports/sobjectizer/vcpkg.json
+4 −4 ports/tbb/vcpkg.json
+2 −2 ports/xbyak/portfile.cmake
+1 −1 ports/xbyak/vcpkg.json
+0 −3 scripts/ci.baseline.txt
+5 −0 versions/b-/baresip-libre.json
+18 −18 versions/baseline.json
+5 −0 versions/c-/civetweb.json
+5 −0 versions/d-/dav1d.json
+5 −0 versions/i-/itk.json
+5 −0 versions/k-/ktx.json
+5 −0 versions/l-/libconfig.json
+5 −0 versions/l-/libpcap.json
+5 −0 versions/m-/matio.json
+5 −0 versions/o-/open62541.json
+5 −0 versions/o-/openmpi.json
+5 −0 versions/q-/quantlib.json
+5 −0 versions/s-/so5extra.json
+5 −0 versions/s-/sobjectizer.json
+5 −0 versions/t-/tbb.json
+5 −0 versions/x-/xbyak.json