From 67a96985579862e1866871adbddb855df1a015a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Wed, 25 Mar 2020 07:35:03 +0100 Subject: [PATCH] printing CMake arguments before execution. Should help analyzing problems. --- scripts/run_cmake.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run_cmake.py b/scripts/run_cmake.py index 400a051..8e2877e 100755 --- a/scripts/run_cmake.py +++ b/scripts/run_cmake.py @@ -133,7 +133,8 @@ def run_cmake(projects: str, repo_path: str, config_file_path: str = None): if config.operating_system == OperatingSystem.Windows: # FIXME: move this path to a config file cmd = r'"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64 && ' + cmd - + + print('Running cmake with these arguments:\n{}'.format(cmd)) subprocess.check_call(cmd, env=env, shell=True, cwd=build_dir) _link_compile_commands(config, repo_path, build_dir) @@ -156,4 +157,3 @@ if __name__ == '__main__': parser.add_argument('repo_path', type=str, nargs='?', default=os.getcwd()) args = parser.parse_args() run_cmake(args.projects, args.repo_path) -