Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 0a541ea

Browse files
libs: Build against the correct anvill version (#745)
1 parent 339800e commit 0a541ea

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/vcpkg_ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ jobs:
5050
shell: bash
5151
run: |
5252
# Change to master after testing
53-
git clone --depth=1 --branch master https://github.com/lifting-bits/anvill.git
53+
git clone --branch master https://github.com/lifting-bits/anvill.git
54+
( cd anvill && git checkout -b release_bc3183b bc3183b )
5455
mkdir -p anvill/build && cd anvill/build
5556
cmake -DCMAKE_VERBOSE_MAKEFILE=ON ..
5657
cmake --build . --target install -- -j "$(nproc)"
@@ -97,7 +98,8 @@ jobs:
9798
shell: bash
9899
run: |
99100
# Change to master after testing
100-
git clone --depth=1 --branch master https://github.com/lifting-bits/anvill.git
101+
git clone --branch master https://github.com/lifting-bits/anvill.git
102+
( cd anvill && git checkout -b release_bc3183b bc3183b )
101103
mkdir -p anvill/build && cd anvill/build
102104
cmake -DCMAKE_VERBOSE_MAKEFILE=ON ..
103105
cmake --build . --target install -- -j "$(sysctl -n hw.logicalcpu)"

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ RUN git clone --depth=1 --branch master https://github.com/lifting-bits/remill.g
4343
RUN cd remill && \
4444
cmake --build remill-build --target install -- -j "$(nproc)" && \
4545
cd ../ && \
46-
git clone --depth=1 --branch master https://github.com/lifting-bits/anvill.git && \
46+
git clone --branch master https://github.com/lifting-bits/anvill.git && \
47+
( cd anvill && git checkout -b release_bc3183b bc3183b ) && \
4748
mkdir -p anvill/build && cd anvill/build && \
4849
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX=${LIBRARIES} -Dremill_DIR=${LIBRARIES}/lib/cmake/remill -DVCPKG_ROOT=/tmp/vcpkg_ubuntu-${UBUNTU_VERSION}_llvm-${LLVM_VERSION}_${ARCH} .. && \
4950
cmake --build . --target install -- -j "$(nproc)"

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Why would anyone translate binaries *back* to bitcode?
7171
| [Git](https://git-scm.com/) | Latest |
7272
| [CMake](https://cmake.org/) | 3.2+ |
7373
| [Remill](https://github.com/lifting-bits/remill) | Latest |
74-
| [Anvill](https://github.com/lifting-bits/anvill) | Latest |
74+
| [Anvill](https://github.com/lifting-bits/anvill) | bc3183b |
7575
| [Python](https://www.python.org/) | 3.8 |
7676
| [Python Package Index](https://pypi.python.org/pypi) | Latest |
7777
| [python-protobuf](https://pypi.python.org/pypi/protobuf) | 3.2.0 |
@@ -188,9 +188,12 @@ source bin/activate
188188

189189
```shell
190190
git clone --depth 1 --single-branch --branch master https://github.com/lifting-bits/remill.git
191-
git clone --depth 1 --single-branch --branch master https://github.com/lifting-bits/anvill.git
192191
git clone --depth 1 --single-branch --branch master https://github.com/lifting-bits/mcsema.git
193192

193+
# Get a compatible anvill version
194+
git clone --branch master https://github.com/lifting-bits/anvill.git
195+
( cd anvill && git checkout -b release_bc3183b bc3183b )
196+
194197
export CC="$(which clang)"
195198
export CXX="$(which clang++)"
196199

0 commit comments

Comments
 (0)