Skip to content

Commit

Permalink
feat(bazel): compile targets used for indexing by Kythe with Ivy (#31786
Browse files Browse the repository at this point in the history
)

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
  • Loading branch information
ayazhafiz authored and mhevery committed Jul 24, 2019
1 parent 44039a4 commit 82055b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/bazel/src/ng_module.bzl
Expand Up @@ -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)

Expand Down

0 comments on commit 82055b2

Please sign in to comment.