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:
parent
1425e63029
commit
72d366fe21
|
@ -35,9 +35,10 @@ def is_ivy_enabled(ctx):
|
||||||
Returns:
|
Returns:
|
||||||
Boolean, Whether the ivy compiler should be used.
|
Boolean, Whether the ivy compiler should be used.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# TODO(josephperrott): Remove configuration via compile=aot define flag.
|
# TODO(josephperrott): Remove configuration via compile=aot define flag.
|
||||||
if ctx.var.get("compile", None) == "aot":
|
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
|
return True
|
||||||
|
|
||||||
if ctx.var.get("angular_ivy_enabled", None) == "True":
|
if ctx.var.get("angular_ivy_enabled", None) == "True":
|
||||||
|
|
Loading…
Reference in New Issue