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

Commit

Permalink
libs: Build against the correct anvill version (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrogario authored Apr 1, 2021
1 parent 339800e commit 0a541ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/vcpkg_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ jobs:
shell: bash
run: |
# Change to master after testing
git clone --depth=1 --branch master https://github.com/lifting-bits/anvill.git
git clone --branch master https://github.com/lifting-bits/anvill.git
( cd anvill && git checkout -b release_bc3183b bc3183b )
mkdir -p anvill/build && cd anvill/build
cmake -DCMAKE_VERBOSE_MAKEFILE=ON ..
cmake --build . --target install -- -j "$(nproc)"
Expand Down Expand Up @@ -97,7 +98,8 @@ jobs:
shell: bash
run: |
# Change to master after testing
git clone --depth=1 --branch master https://github.com/lifting-bits/anvill.git
git clone --branch master https://github.com/lifting-bits/anvill.git
( cd anvill && git checkout -b release_bc3183b bc3183b )
mkdir -p anvill/build && cd anvill/build
cmake -DCMAKE_VERBOSE_MAKEFILE=ON ..
cmake --build . --target install -- -j "$(sysctl -n hw.logicalcpu)"
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ RUN git clone --depth=1 --branch master https://github.com/lifting-bits/remill.g
RUN cd remill && \
cmake --build remill-build --target install -- -j "$(nproc)" && \
cd ../ && \
git clone --depth=1 --branch master https://github.com/lifting-bits/anvill.git && \
git clone --branch master https://github.com/lifting-bits/anvill.git && \
( cd anvill && git checkout -b release_bc3183b bc3183b ) && \
mkdir -p anvill/build && cd anvill/build && \
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} .. && \
cmake --build . --target install -- -j "$(nproc)"
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Why would anyone translate binaries *back* to bitcode?
| [Git](https://git-scm.com/) | Latest |
| [CMake](https://cmake.org/) | 3.2+ |
| [Remill](https://github.com/lifting-bits/remill) | Latest |
| [Anvill](https://github.com/lifting-bits/anvill) | Latest |
| [Anvill](https://github.com/lifting-bits/anvill) | bc3183b |
| [Python](https://www.python.org/) | 3.8 |
| [Python Package Index](https://pypi.python.org/pypi) | Latest |
| [python-protobuf](https://pypi.python.org/pypi/protobuf) | 3.2.0 |
Expand Down Expand Up @@ -188,9 +188,12 @@ source bin/activate

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

# Get a compatible anvill version
git clone --branch master https://github.com/lifting-bits/anvill.git
( cd anvill && git checkout -b release_bc3183b bc3183b )

export CC="$(which clang)"
export CXX="$(which clang++)"

Expand Down

0 comments on commit 0a541ea

Please sign in to comment.