@@ -234,6 +234,10 @@ def to_gn_args(args):
234
234
gn_args ['use_goma' ] = False
235
235
gn_args ['goma_dir' ] = None
236
236
237
+ if gn_args ['use_goma' ]:
238
+ if args .xcode_symlinks :
239
+ gn_args ['create_xcode_symlinks' ] = True
240
+
237
241
# Enable Metal on iOS builds.
238
242
if args .target_os == 'ios' :
239
243
gn_args ['skia_use_metal' ] = True
@@ -339,6 +343,10 @@ def parse_args(args):
339
343
340
344
parser .add_argument ('--goma' , default = True , action = 'store_true' )
341
345
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' )
342
350
parser .add_argument ('--depot-tools' , default = '~/depot_tools' , type = str ,
343
351
help = 'Depot tools provides an alternative location for gomacc in ' +
344
352
'/path/to/depot_tools/.cipd_bin' )
0 commit comments