diff options
author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-06-21 13:57:38 +0200 |
---|---|---|
committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-06-21 15:17:54 +0200 |
commit | 85fc651460f0e408548c13d7056e7e30a148a946 (patch) | |
tree | 17f7f3455898cd8fe5a61f2c204a1df869614ad2 /build_scripts/utils.py | |
parent | b70d8b334c4f714a046d72ea0a5f1a8378fd55b9 (diff) |
build: catch RuntimeError for install_name_tool on macOS
To solve the issue when trying to add a RPATH to a binary
that already has it.
Pick-to: 6.3
Change-Id: Ia181d932d03c81f3c4a244e267c97cca84d30620
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'build_scripts/utils.py')
-rw-r--r-- | build_scripts/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build_scripts/utils.py b/build_scripts/utils.py index 39a69e385..a99ef073b 100644 --- a/build_scripts/utils.py +++ b/build_scripts/utils.py @@ -565,7 +565,10 @@ def macos_get_rpaths(libpath): def macos_add_rpath(rpath, library_path): - back_tick(f"install_name_tool -add_rpath {rpath} {library_path}") + try: + back_tick(f"install_name_tool -add_rpath {rpath} {library_path}") + except RuntimeError as e: + print(f"Exception {type(e).__name__}: {e}") def macos_fix_rpaths_for_library(library_path, qt_lib_dir): |