From dcb73b8c64debcd5ddc1f6a971524c0829c11e67 Mon Sep 17 00:00:00 2001 From: muit Date: Thu, 5 Jan 2023 17:49:15 +0100 Subject: [PATCH] Execute commands as shell --- build.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.py b/build.py index 4a7bab7f3..daeb97aaa 100644 --- a/build.py +++ b/build.py @@ -21,26 +21,26 @@ def configure(root, path, build_path, config): command = 'cmake -S "{}" -B "{}" -C "{}" -DCMAKE_BUILD_TYPE={}'.format(path, build_path, cache_file, config) print('Command: {}'.format(command)) - subprocess.run(command, check=True) + subprocess.run(command, shell=True, check=True) print('\n') def build(build_path, config): print('>> Build ({})'.format(config)) command = 'cmake --build "{}" --config {} --target install'.format(build_path, config) print('Command: {}'.format(command)) - subprocess.run(command, check=False) + subprocess.run(command, shell=True, check=False) # Extra targets #command = 'cmake --build "{}" --config {} --target libclang'.format(build_path, config) #print('Command: {}'.format(command)) - #subprocess.run(command, check=False) + #subprocess.run(command, shell=True, check=False) print('\n') def install(install_path, build_path, config): print(">> Install LLVM") command = 'cmake --install {} --config {} --prefix {}'.format(build_path, config, install_path) print('Command: {}'.format(command)) - subprocess.run(command, check=True) + subprocess.run(command, shell=True, check=True) print('\n')