From d99e243f5717f5e3dcad1a7abef722f5d0609b3c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 10 Jun 2021 07:48:52 +0530 Subject: [PATCH] Respect --ignore-compiler-warnings when building the launcher --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a8218a733..11192d2d1 100755 --- a/setup.py +++ b/setup.py @@ -789,7 +789,8 @@ def safe_makedirs(path: str) -> None: def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 'source') -> None: - cflags = '-Wall -Werror -fpie'.split() + werror = '' if args.ignore_compiler_warnings else '-pedantic-errors -Werror' + cflags = f'-Wall {werror} -fpie'.split() if args.build_universal_binary: cflags += '-arch x86_64 -arch arm64'.split() cppflags = []