mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Enable sanitizer build variants. (flutter/engine#12816)
This commit is contained in:
parent
0106398abd
commit
af81e5da99
2
DEPS
2
DEPS
@ -136,7 +136,7 @@ allowed_hosts = [
|
||||
]
|
||||
|
||||
deps = {
|
||||
'src': 'https://github.com/flutter/buildroot.git' + '@' + '3b6ae6cbb7d891e637331faf689005fd6f302568',
|
||||
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'eb6a23609da39c7e20c47ee6d041466ce9a7b63c',
|
||||
|
||||
# Fuchsia compatibility
|
||||
#
|
||||
|
||||
@ -257,6 +257,18 @@ def to_gn_args(args):
|
||||
|
||||
gn_args['stripped_symbols'] = args.stripped
|
||||
|
||||
if args.msan:
|
||||
gn_args['is_msan'] = True
|
||||
|
||||
if args.asan:
|
||||
gn_args['is_asan'] = True
|
||||
|
||||
if args.tsan:
|
||||
gn_args['is_tsan'] = True
|
||||
|
||||
if args.lsan:
|
||||
gn_args['is_lsan'] = True
|
||||
|
||||
return gn_args
|
||||
|
||||
def parse_args(args):
|
||||
@ -330,6 +342,12 @@ def parse_args(args):
|
||||
help='Strip debug symbols from the output. This defaults to true and has no effect on iOS.')
|
||||
parser.add_argument('--no-stripped', dest='stripped', action='store_false')
|
||||
|
||||
# Sanitizers.
|
||||
parser.add_argument('--asan', default=False, action='store_true')
|
||||
parser.add_argument('--lsan', default=False, action='store_true')
|
||||
parser.add_argument('--msan', default=False, action='store_true')
|
||||
parser.add_argument('--tsan', default=False, action='store_true')
|
||||
|
||||
return parser.parse_args(args)
|
||||
|
||||
def main(argv):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user