Skip to content

Commit 82055b2

Browse files
ayazhafizmhevery
authored andcommittedJul 24, 2019
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
1 parent 44039a4 commit 82055b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎packages/bazel/src/ng_module.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ def compile_strategy(ctx):
4242
if "compile" in ctx.var:
4343
strategy = ctx.var["compile"]
4444

45+
# Enable Angular targets extracted by Kythe Angular indexer to be compiled with the Ivy compiler architecture.
46+
# TODO(ayazhafiz): remove once Ivy has landed as the default in g3.
47+
if ctx.var.get("GROK_ELLIPSIS_BUILD", None) != None:
48+
strategy = "aot"
49+
4550
if strategy not in ["legacy", "aot"]:
4651
fail("Unknown --define=compile value '%s'" % strategy)
4752

0 commit comments

Comments
 (0)