Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ def to_gn_args(args):
gn_args['use_goma'] = False
gn_args['goma_dir'] = None

if gn_args['use_goma']:
if args.xcode_symlinks:
gn_args['create_xcode_symlinks'] = True

# Enable Metal on iOS builds.
if args.target_os == 'ios':
gn_args['skia_use_metal'] = True
Expand Down Expand Up @@ -339,6 +343,10 @@ def parse_args(args):

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