Skip to content

Commit

Permalink
Adds a flag to the gn script to build with -fstack-protector (flutter…
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso authored Jun 24, 2022
1 parent 42dcf9c commit e780ac2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ allowed_hosts = [
]

deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + '87d5dcb98983da54257f6f39d3beee2989cb0e47',
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'e27b16edf1fd54c358cc9499aa02297100375354',

# Fuchsia compatibility
#
Expand Down
10 changes: 10 additions & 0 deletions tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ def to_gn_args(args):
if args.ubsan:
gn_args['is_ubsan'] = True

if args.fstack_protector:
gn_args['use_fstack_protector'] = True

if args.enable_vulkan_validation_layers:
if args.target_os != 'fuchsia':
print(
Expand Down Expand Up @@ -860,6 +863,13 @@ def parse_args(args):
parser.add_argument('--tsan', default=False, action='store_true')
parser.add_argument('--ubsan', default=False, action='store_true')

parser.add_argument(
'--fstack-protector',
default=False,
action='store_true',
help='Whether the -fstack-protector flag should be passed unconditionally.'
)

parser.add_argument(
'--trace-gn',
default=False,
Expand Down

0 comments on commit e780ac2

Please sign in to comment.