diff --git a/scripts/patch_paddle_inference.py b/scripts/patch_paddle_inference.py index 9a141d0d8..2ee0dee9b 100644 --- a/scripts/patch_paddle_inference.py +++ b/scripts/patch_paddle_inference.py @@ -21,6 +21,8 @@ import sys def process_paddle_inference(paddle_inference_so_file): + if platform.system().lower() != "linux": + return rpaths = [ "$ORIGIN", "$ORIGIN/../../third_party/install/mkldnn/lib/", "$ORIGIN/../../third_party/install/mklml/lib/",