Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Enable sanitizer build variants. #12816

Merged
merged 1 commit into from
Oct 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down
18 changes: 18 additions & 0 deletions tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down