Add unit testing for launcher code

This commit is contained in:
Kovid Goyal 2025-04-28 09:25:25 +05:30
parent a484d6928e
commit 5c9c8aa424
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
5 changed files with 189 additions and 30 deletions

View file

@ -1299,8 +1299,10 @@ def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 's
werror = '' if args.ignore_compiler_warnings else '-pedantic-errors -Werror'
cflags = f'-Wall {werror} -fpie'.split()
cppflags = [define(f'WRAPPED_KITTENS=" {wrapped_kittens()} "')]
libs: List[str] = []
ldflags = shlex.split(os.environ.get('LDFLAGS', ''))
xxhash = xxhash_flags()
cppflags.extend(xxhash[0])
libs: list[str] = xxhash[1]
if args.profile or args.sanitize:
cflags.append('-g3')
if args.sanitize: