Merge "Deprecate 'contributions' field from linkerconfig" into main

This commit is contained in:
Jooyung Han
2023-11-10 03:55:49 +00:00
committed by Gerrit Code Review

View File

@@ -149,6 +149,11 @@ def Validate(args):
else:
sys.exit(f'Unknown type: {args.type}')
# Reject contributions field at build time while keeping the runtime behavior for GRF.
if getattr(pb, 'contributions'):
sys.exit(f"{args.input}: 'contributions' is set. "
"It's deprecated. Instead, make the APEX 'visible' and use android_dlopen_ext().")
def ValidateAndWriteAsPbFile(pb, output_path):
ValidateConfiguration(pb)