From 72d366fe2181887063255ee74aa9c31236b5af6e Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Wed, 27 Nov 2019 13:12:31 -0800 Subject: [PATCH] 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 --- packages/bazel/src/ng_module.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bazel/src/ng_module.bzl b/packages/bazel/src/ng_module.bzl index 1c42e2702c..7191de737b 100644 --- a/packages/bazel/src/ng_module.bzl +++ b/packages/bazel/src/ng_module.bzl @@ -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":