From cc7220d321bab6f840f2bfdb6f644383db34f96c Mon Sep 17 00:00:00 2001 From: PaddleCI Date: Thu, 29 Sep 2022 10:38:32 +0800 Subject: [PATCH] fix compile on mac --- scripts/patch_paddle_inference.py | 2 ++ 1 file changed, 2 insertions(+) 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/",