Skip to content

Commit 08eac74

Browse files
Add support for verbose option in gen_coverage
1 parent 7d878b2 commit 08eac74

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/gen_coverage.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def run(
3030
run_pytest=False,
3131
bin_llvm=None,
3232
gtest_config=None,
33+
verbose=False,
3334
):
3435
IS_LIN = False
3536

@@ -68,6 +69,10 @@ def run(
6869
env.update({k: v for k, v in os.environ.items() if k != "PATH"})
6970
if gtest_config:
7071
cmake_args += ["-DCMAKE_PREFIX_PATH=" + gtest_config]
72+
if verbose:
73+
cmake_args += [
74+
"-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON",
75+
]
7176
subprocess.check_call(cmake_args, shell=False, cwd=setup_dir, env=env)
7277
cmake_build_dir = (
7378
subprocess.check_output(
@@ -186,6 +191,12 @@ def is_py_ext(fn):
186191
driver.add_argument(
187192
"--bin-llvm", help="Path to folder where llvm-cov can be found"
188193
)
194+
driver.add_argument(
195+
"--verbose",
196+
help="Build using vebose makefile mode",
197+
dest="verbose",
198+
action="store_true",
199+
)
189200
driver.add_argument(
190201
"--gtest-config",
191202
help="Path to the GTestConfig.cmake file to locate a "
@@ -233,4 +244,5 @@ def is_py_ext(fn):
233244
run_pytest=args.run_pytest,
234245
bin_llvm=args.bin_llvm,
235246
gtest_config=args.gtest_config,
247+
verbose=args.verbose,
236248
)

0 commit comments

Comments
 (0)