diff --git a/sh_script/pre-build.sh b/sh_script/pre-build.sh index 21f37db..c742d1c 100755 --- a/sh_script/pre-build.sh +++ b/sh_script/pre-build.sh @@ -20,6 +20,11 @@ patch-ring() { pushd external/ring git reset --hard 464d367252354418a2c17feb806876d4d89a8508 git clean -xdf + + # apply the patch to get rid of unused import warning during compilation + # https://github.com/briansmith/ring/commit/c4742e0cae849f08ff410a817c5266af41670b3d + git cherry-pick c4742e0cae849f08ff410a817c5266af41670b3d + case "$TARGET_OPTION" in "x86_64-unknown-none") git apply ../patches/ring/0001-Support-x86_64-unknown-none-target.patch