Fix build on jetson (#281)

* Fix compile on Jetson

* trigger ci
This commit is contained in:
Jason
2022-09-26 19:23:30 +08:00
committed by GitHub
parent 85c44d562e
commit 36eb6fbba6
3 changed files with 4 additions and 3 deletions

View File

@@ -28,4 +28,4 @@ def process_paddle_inference(paddle_inference_so_file):
command = "patchelf --set-rpath '{}' {}".format(":".join(rpaths), paddle_inference_so_file)
if platform.machine() != 'sw_64' and platform.machine() != 'mips64':
assert subprocess.Popen(command, shell=True) != 0, "patchelf {} failed, the command: {}".format(command, lib)
assert os.system(command) == 0, "patchelf {} failed, the command: {}".format(paddle_inference_so_file, command)