build: Add verbosity opt to buildspark.py
This commit is contained in:
1 parent
07fe19ecdc
commit
f8059cc87e
1 file changed
+10
-2
+10
-2
@@ -251,7 +251,14 @@ def _get_arg_parser():
|
||||
help=
|
||||
'Whether or not to delete and overwrite an existing build directory')
|
||||
|
||||
parser.set_defaults(restore=True, cpp=True, csharp=True)
|
||||
parser.add_argument(
|
||||
'--verbosity',
|
||||
metavar='[q(uiet)|m(inimal)|n(ormal)|d(etailed)|diag(nostic)]',
|
||||
choices=['q', 'quiet', 'm', 'minimal', 'n', 'normal', 'd', 'detailed', 'diag', 'diagnostic'],
|
||||
type=str,
|
||||
help='The output verbosity level')
|
||||
|
||||
parser.set_defaults(restore=True, cpp=True, csharp=True, verbosity='minimal')
|
||||
return parser
|
||||
|
||||
|
||||
@@ -274,6 +281,7 @@ if __name__ == "__main__":
|
||||
targets = [t for grp in targets for t in grp]
|
||||
if len(targets) == 0:
|
||||
targets.append('all')
|
||||
verbosity = get_arg(args_dict, 'verbosity')
|
||||
|
||||
vs_context = _deduce_visual_studio_context()
|
||||
|
||||
@@ -320,7 +328,7 @@ if __name__ == "__main__":
|
||||
f"{vs_context.msbuild_prop('GenerateFullPaths', 'true')}",
|
||||
f"{vs_context.msbuild_prop('configuration', args.configuration)}",
|
||||
f"{vs_context.msbuild_prop('debugtype', debugtype)}",
|
||||
f"{vs_context.msbuild_clp('verbosity', 'minimal')}",
|
||||
f"{vs_context.msbuild_clp('verbosity', verbosity)}",
|
||||
f"{vs_context.msbuild_clp('summary')}"])
|
||||
for t in cpp_targets:
|
||||
build_cmd_steps.append(
|
||||
|
||||
Reference in new issue
Block a user