build: create --config=ivy flag to set the angular_ivy_enabled define flag value (#33983)

Beginning of migration away from --define=compile=* to --define=angular_ivy_enabled=*.
Additionally, to make it clearer to developers, we will encourage use of --config=ivy
instead of directy setting the --define flag, this abstraction will allow us more
flexibility as we move foward with relation to our compile decisions at build time.

PR Close #33983
This commit is contained in:
Joey Perrott
2019-11-22 12:00:49 -08:00
committed by Matias Niemelä
parent 5cc362fbbf
commit d2784c7894
3 changed files with 9 additions and 2 deletions

View File

@ -13,6 +13,7 @@ build --local_resources=14336,8.0,1.0
# Use the Angular Ivy compiler
# See https://github.com/angular/angular/blob/master/docs/BAZEL.md#various-flags-used-for-tests
build --define=angular_ivy_enabled=True
build --define=compile=aot
# Temporary define while angular depends on the legacy rollup_bundle rule.