Skip to content

Commit e65bc6a

Browse files
Add --verbose option to invoke cmake with verbose-makefile
1 parent 5bfc097 commit e65bc6a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/build_locally.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def run(
2828
compiler_root=None,
2929
cmake_executable=None,
3030
use_glog=False,
31+
verbose=False,
3132
cmake_opts="",
3233
):
3334
build_system = None
@@ -58,6 +59,10 @@ def run(
5859
"-DDPCTL_ENABLE_L0_PROGRAM_CREATION=" + ("ON" if level_zero else "OFF"),
5960
"-DDPCTL_ENABLE_GLOG:BOOL=" + ("ON" if use_glog else "OFF"),
6061
]
62+
if verbose:
63+
cmake_args += [
64+
"-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON",
65+
]
6166
if cmake_opts:
6267
cmake_args += cmake_opts.split()
6368
subprocess.check_call(
@@ -113,6 +118,12 @@ def run(
113118
dest="glog",
114119
action="store_true",
115120
)
121+
driver.add_argument(
122+
"--verbose",
123+
help="Build using vebose makefile mode",
124+
dest="verbose",
125+
action="store_true",
126+
)
116127
driver.add_argument(
117128
"--cmake-opts",
118129
help="DPCTLSyclInterface uses Google logger",
@@ -173,5 +184,6 @@ def run(
173184
compiler_root=args.compiler_root,
174185
cmake_executable=args.cmake_executable,
175186
use_glog=args.glog,
187+
verbose=args.verbose,
176188
cmake_opts=args.cmake_opts,
177189
)

0 commit comments

Comments
 (0)