mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Allow specifying an alternate Mac host SDK. (#8249)
This commit is contained in:
parent
3df694300b
commit
b68f7e72aa
6
tools/gn
6
tools/gn
@ -241,6 +241,9 @@ def to_gn_args(args):
|
||||
gn_args['dart_platform_sdk'] = not args.full_dart_sdk
|
||||
gn_args['full_dart_sdk'] = args.full_dart_sdk
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
gn_args['mac_sdk_path'] = args.mac_sdk_path
|
||||
|
||||
return gn_args
|
||||
|
||||
def parse_args(args):
|
||||
@ -296,6 +299,9 @@ def parse_args(args):
|
||||
help='include trained dart2js and dartdevc snapshots. Enable only on steps that create an SDK')
|
||||
parser.add_argument('--no-full-dart-sdk', dest='full_dart_sdk', action='store_false')
|
||||
|
||||
parser.add_argument('--mac-sdk-path', default='', type=str,
|
||||
help='On the mac, the SDK is inferred from the Xcode location unless this flag is specified.')
|
||||
|
||||
return parser.parse_args(args)
|
||||
|
||||
def main(argv):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user