Skip to content

Commit b68f7e7

Browse files
authored
Allow specifying an alternate Mac host SDK. (flutter#8249)
1 parent 3df6943 commit b68f7e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/gn

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ def to_gn_args(args):
241241
gn_args['dart_platform_sdk'] = not args.full_dart_sdk
242242
gn_args['full_dart_sdk'] = args.full_dart_sdk
243243

244+
if sys.platform == 'darwin':
245+
gn_args['mac_sdk_path'] = args.mac_sdk_path
246+
244247
return gn_args
245248

246249
def parse_args(args):
@@ -296,6 +299,9 @@ def parse_args(args):
296299
help='include trained dart2js and dartdevc snapshots. Enable only on steps that create an SDK')
297300
parser.add_argument('--no-full-dart-sdk', dest='full_dart_sdk', action='store_false')
298301

302+
parser.add_argument('--mac-sdk-path', default='', type=str,
303+
help='On the mac, the SDK is inferred from the Xcode location unless this flag is specified.')
304+
299305
return parser.parse_args(args)
300306

301307
def main(argv):

0 commit comments

Comments
 (0)