forked from qt-creator/qt-creator
scripts: Deploy clang-format tool
The beautifier plugin can use the clang-format tool, which is statically build, and it's around 2-6 MB in size. Fixes: QTCREATORBUG-25600 Change-Id: I900f0dbfc2ba2773d3ad986c149adb41a4103e94 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -238,7 +238,7 @@ def deploy_clang(install_dir, llvm_install_dir, chrpath_bin):
|
||||
clanglibdirtarget = os.path.join(install_dir, 'bin', 'clang', 'lib')
|
||||
if not os.path.exists(clanglibdirtarget):
|
||||
os.makedirs(clanglibdirtarget)
|
||||
for binary in ['clangd', 'clang-tidy', 'clazy-standalone']:
|
||||
for binary in ['clangd', 'clang-tidy', 'clazy-standalone', 'clang-format']:
|
||||
binary_filepath = os.path.join(llvm_install_dir, 'bin', binary + '.exe')
|
||||
if os.path.exists(binary_filepath):
|
||||
deployinfo.append((binary_filepath, clangbindirtarget))
|
||||
@@ -248,7 +248,7 @@ def deploy_clang(install_dir, llvm_install_dir, chrpath_bin):
|
||||
clangbinary_targetdir = os.path.join(install_dir, 'libexec', 'qtcreator', 'clang', 'bin')
|
||||
if not os.path.exists(clangbinary_targetdir):
|
||||
os.makedirs(clangbinary_targetdir)
|
||||
for binary in ['clangd', 'clang-tidy', 'clazy-standalone']:
|
||||
for binary in ['clangd', 'clang-tidy', 'clazy-standalone', 'clang-format']:
|
||||
binary_filepath = os.path.join(llvm_install_dir, 'bin', binary)
|
||||
if os.path.exists(binary_filepath):
|
||||
deployinfo.append((binary_filepath, clangbinary_targetdir))
|
||||
|
Reference in New Issue
Block a user