From 49b9f81bd45bee116b119dd410d1649eec6375f7 Mon Sep 17 00:00:00 2001 From: Robin Avery Date: Tue, 5 Mar 2024 19:31:47 -0500 Subject: [PATCH] Change `configure.py` `--max-errors` default to 1 (#1376) --- configure.py | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/configure.py b/configure.py index f69e897cb2..16a42b7543 100755 --- a/configure.py +++ b/configure.py @@ -73,7 +73,7 @@ "--use-asm", dest="no_asm", action="store_false", - help="don't incorporate .s files from asm directory", + help="incorporate .s files from asm directory", ) parser.add_argument( "--debug", @@ -108,12 +108,12 @@ "--msg-style", choices=["mpw", "std", "gcc", "ide", "parseable"], default="std", - help="message style of the compiler (default 'std')", + help="message style of the compiler and linker (default 'std')", ) parser.add_argument( "--max-errors", type=int, - default=0, + default=1, help="the maximum number of errors allowed by the compiler (default 0, meaning unlimited)", ) parser.add_argument( @@ -209,17 +209,13 @@ else: cflags_base.append("-DNDEBUG=1") -if args.max_errors is not None: - cflags_base.append(f"-maxerrors {args.max_errors}") - if args.max_errors == 0: - cflags_base.append("-nofail") +cflags_base.append(f"-maxerrors {args.max_errors}") +if args.max_errors == 0: + cflags_base.append("-nofail") -if args.msg_style is not None: - cflags_base.append(f"-msgstyle {args.msg_style}") - config.ldflags.append(f"-msgstyle {args.msg_style}") - -if args.warn is not None: - cflags_base.append(f"-warn {args.warn}") +cflags_base.append(f"-msgstyle {args.msg_style}") +config.ldflags.append(f"-msgstyle {args.msg_style}") +cflags_base.append(f"-warn {args.warn}") if args.warn_error: cflags_base.append("-warn iserror")