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

Commit 4b5e4e6

Browse files
authored
Make it easier to turn on Xcode symlinks (#23150)
1 parent ea4bb2a commit 4b5e4e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/gn

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ def to_gn_args(args):
234234
gn_args['use_goma'] = False
235235
gn_args['goma_dir'] = None
236236

237+
if gn_args['use_goma']:
238+
if args.xcode_symlinks:
239+
gn_args['create_xcode_symlinks'] = True
240+
237241
# Enable Metal on iOS builds.
238242
if args.target_os == 'ios':
239243
gn_args['skia_use_metal'] = True
@@ -339,6 +343,10 @@ def parse_args(args):
339343

340344
parser.add_argument('--goma', default=True, action='store_true')
341345
parser.add_argument('--no-goma', dest='goma', action='store_false')
346+
parser.add_argument('--xcode-symlinks', action='store_true', help='Set to true for builds targetting macOS or iOS ' +
347+
'when using goma. If set, symlinks to the Xcode provided sysroot and SDKs will be created in a generated ' +
348+
'folder, which will avoid potential backend errors in Fuchsia RBE.')
349+
parser.add_argument('--no-xcode-symlinks', dest='xcode_symlinks', default=False, action='store_false')
342350
parser.add_argument('--depot-tools', default='~/depot_tools', type=str,
343351
help='Depot tools provides an alternative location for gomacc in ' +
344352
'/path/to/depot_tools/.cipd_bin')

0 commit comments

Comments
 (0)