Disable the use of the API_AVAILABLE macro in Skia in iOS release builds. (flutter/engine#17213)

The use of this macro in C++ translation units leads to the symbol visibility
being switched to default instead of hidden. This only happens in bitcode
enabled builds. A toolchain upgrade will be necessary to undo this workaround.
This commit is contained in:
Chinmay Garde
2020-03-19 18:13:40 -07:00
committed by GitHub
parent 45f738b552
commit f1937cf92f

View File

@@ -222,7 +222,10 @@ def to_gn_args(args):
if args.enable_metal:
gn_args['skia_use_metal'] = True
gn_args['shell_enable_metal'] = True
gn_args['allow_deprecated_api_calls'] = True
# Bitcode enabled builds using the current version of the toolchain leak
# C++ symbols decorated with the availability attribute. Disable these
# attributes in release modes till the toolchain is updated.
gn_args['skia_enable_api_available_macro'] = args.runtime_mode != "release"
if args.enable_vulkan:
# Enable vulkan in the Flutter shell.