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

Commit

Permalink
Merge pull request #112 from nervosnetwork/update-ckb-binary-patcher
Browse files Browse the repository at this point in the history
chore: update nervosnetwork/ckb-binary-patcher
  • Loading branch information
jjyr authored Jan 17, 2022
2 parents 6fbbbca + 0ef581c commit a3892bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,15 @@ dist: clean-via-docker all-via-docker patch-generator patch-generator_log
CKB_BIN_PATCHER := deps/ckb-binary-patcher/target/release/ckb-binary-patcher
build/ckb-binary-patcher:
cd deps && [ -d "ckb-binary-patcher" ] \
|| git clone --depth=1 https://github.com/nervosnetwork/ckb-binary-patcher.git
|| ( \
echo "fetch ckb-binary-patcher with [Remove atomic instructions] feature" && \
git clone -b master https://github.com/nervosnetwork/ckb-binary-patcher.git)
[ -f ${CKB_BIN_PATCHER} ] \
|| (cd deps/ckb-binary-patcher \
&& git fetch https://github.com/XuJiandong/ckb-binary-patcher ad6ab1ad29b9b8b465e7e22f5e4e65bec5b8c43f \
&& git checkout FETCH_HEAD \
&& cargo build --release)
|| ( \
echo "build ckb-binary-patcher" && \
cd deps/ckb-binary-patcher && \
git checkout b9489de4b3b9d59bc29bce945279bc6f28413113 && \
cargo build --release)
patch-generator: build/ckb-binary-patcher
${CKB_BIN_PATCHER} --remove-a -i build/generator -o build/generator.aot
cp build/generator build/generator.asm
Expand Down
2 changes: 1 addition & 1 deletion polyjuice-tests/Cargo.lock

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

0 comments on commit a3892bb

Please sign in to comment.