build: Add deprecation warning when compile=aot is used for building with Ivy (#34109)

To inform downstream users to switch to using angular_ivy_enabled as the build
variable for setting Ivy, a deprecation message is printed instructing the user
to migrate away from building with compile=*

PR Close #34109
This commit is contained in:
Joey Perrott 2019-11-27 13:12:31 -08:00 committed by Miško Hevery
parent 1425e63029
commit 72d366fe21
1 changed files with 2 additions and 1 deletions

View File

@ -35,9 +35,10 @@ def is_ivy_enabled(ctx):
Returns:
Boolean, Whether the ivy compiler should be used.
"""
# TODO(josephperrott): Remove configuration via compile=aot define flag.
if ctx.var.get("compile", None) == "aot":
print("Setting ViewEngine/Ivy using the compile build variable (--define=compile=*) " +
"is deprecated, please use the angular_ivy_enabled build variable instead.")
return True
if ctx.var.get("angular_ivy_enabled", None) == "True":