From c501f5985971b7eb90670589c9bc63badcc7670c Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 10 Jun 2015 15:08:58 +0200 Subject: [PATCH] prepare.py: separate --debug and --debug-verbose options --- prepare.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/prepare.py b/prepare.py index 8e9cffca0..f725375ab 100755 --- a/prepare.py +++ b/prepare.py @@ -167,7 +167,9 @@ def main(argv=None): argparser.add_argument( '-c', '-C', '--clean', help="Clean a previous build instead of preparing a build.", action='store_true') argparser.add_argument( - '-d', '--debug', help="Prepare a debug build.", action='store_true') + '-d', '--debug', help="Prepare a debug build, eg. add debug symbols and use no optimizations.", action='store_true') + argparser.add_argument( + '-dv', '--debug-verbose', help="Activate ms_debug logs.", action='store_true') argparser.add_argument( '-f', '--force', help="Force preparation, even if working directory already exist.", action='store_true') argparser.add_argument('-L', '--list-cmake-variables', @@ -201,7 +203,7 @@ def main(argv=None): if args.clean: target.clean() else: - if args.debug: + if args.debug_verbose: additional_args += ["-DENABLE_DEBUG_LOGS=YES"] retcode = prepare.run( target, args.debug, False, args.list_cmake_variables, args.force, additional_args)