aboutsummaryrefslogtreecommitdiffstats
path: root/packaging-tools/bld_qtcreator_plugins.py
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-04-18 11:48:37 +0200
committerEike Ziller <eike.ziller@qt.io>2018-04-18 09:57:07 +0000
commit1a18d35935c9e369db39de529db63f64f83a44d1 (patch)
treed89025087ee7fca92b1f1837376f9592be3e3a14 /packaging-tools/bld_qtcreator_plugins.py
parent7d204c5d7b36a875a9983d0493f947f467fac29c (diff)
Qt Creator: Yet another fixup for macOS/qdoc/libclang
Change-Id: If06c065363fc1868d5f5b31ab3c2776a70ff56b7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'packaging-tools/bld_qtcreator_plugins.py')
-rwxr-xr-xpackaging-tools/bld_qtcreator_plugins.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/packaging-tools/bld_qtcreator_plugins.py b/packaging-tools/bld_qtcreator_plugins.py
index a37ad0b8b..8644f3648 100755
--- a/packaging-tools/bld_qtcreator_plugins.py
+++ b/packaging-tools/bld_qtcreator_plugins.py
@@ -193,11 +193,13 @@ def build_plugins(caller_arguments):
else:
# macOS System Integrity Protection prevents passing DYLD_LIBRARY_PATH through qdoc_wrapper.sh
# so we have to manually adapt the script instead
- with open(os.path.join(paths.build, 'qdoc_wrapper.sh'), 'r') as f:
- lines = f.readlines()
- lines.insert(1, 'export DYLD_LIBRARY_PATH="' + qdoc_lib_path + '"\n')
- with open(os.path.join(paths.build, 'qdoc_wrapper.sh'), 'w') as f:
- f.writelines(lines)
+ wrapper = os.path.join(paths.build, 'qdoc_wrapper.sh')
+ if os.path.exists(wrapper):
+ with open(wrapper, 'r') as f:
+ lines = f.readlines()
+ lines.insert(1, 'export DYLD_LIBRARY_PATH="' + qdoc_lib_path + '"\n')
+ with open(wrapper, 'w') as f:
+ f.writelines(lines)
runBuildCommand("docs", currentWorkingDirectory = paths.build,
callerArguments = caller_arguments, init_environment = qdoc_environment)