Skip to content

Commit e780ac2

Browse files
authored
Adds a flag to the gn script to build with -fstack-protector (flutter#34257)
1 parent 42dcf9c commit e780ac2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ allowed_hosts = [
111111
]
112112

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

116116
# Fuchsia compatibility
117117
#

tools/gn

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,9 @@ def to_gn_args(args):
495495
if args.ubsan:
496496
gn_args['is_ubsan'] = True
497497

498+
if args.fstack_protector:
499+
gn_args['use_fstack_protector'] = True
500+
498501
if args.enable_vulkan_validation_layers:
499502
if args.target_os != 'fuchsia':
500503
print(
@@ -860,6 +863,13 @@ def parse_args(args):
860863
parser.add_argument('--tsan', default=False, action='store_true')
861864
parser.add_argument('--ubsan', default=False, action='store_true')
862865

866+
parser.add_argument(
867+
'--fstack-protector',
868+
default=False,
869+
action='store_true',
870+
help='Whether the -fstack-protector flag should be passed unconditionally.'
871+
)
872+
863873
parser.add_argument(
864874
'--trace-gn',
865875
default=False,

0 commit comments

Comments
 (0)