feat(bazel): compile targets used for indexing by Kythe with Ivy (#31786)
This switches all Angular targets to be built with the same Angular compiler architecture (c.n. Ivy) that the Angular indexer uses. This eliminates issues with cross-references to transitive dependencies not being generated because of the way such dependencies are loaded by the legacy compiler arch. PR Close #31786
This commit is contained in:
parent
44039a4b16
commit
82055b2fb8
|
@ -42,6 +42,11 @@ def compile_strategy(ctx):
|
|||
if "compile" in ctx.var:
|
||||
strategy = ctx.var["compile"]
|
||||
|
||||
# Enable Angular targets extracted by Kythe Angular indexer to be compiled with the Ivy compiler architecture.
|
||||
# TODO(ayazhafiz): remove once Ivy has landed as the default in g3.
|
||||
if ctx.var.get("GROK_ELLIPSIS_BUILD", None) != None:
|
||||
strategy = "aot"
|
||||
|
||||
if strategy not in ["legacy", "aot"]:
|
||||
fail("Unknown --define=compile value '%s'" % strategy)
|
||||
|
||||
|
|
Loading…
Reference in New Issue