build: rename the ivy compile mode 'local' to 'aot' (#26686)

PR Close #26686
This commit is contained in:
Igor Minar
2018-10-23 09:54:12 -07:00
parent e0d6782d26
commit ee0b857172
35 changed files with 59 additions and 60 deletions

View File

@ -30,14 +30,14 @@ def compile_strategy(ctx):
ctx: skylark rule execution context
Returns:
one of 'legacy', 'local', 'jit', or 'global' depending on the configuration in ctx
one of 'legacy', 'aot', 'jit', or 'global' depending on the configuration in ctx
"""
strategy = "legacy"
if "compile" in ctx.var:
strategy = ctx.var["compile"]
if strategy not in ["legacy", "local", "jit"]:
if strategy not in ["legacy", "aot", "jit"]:
fail("Unknown --define=compile value '%s'" % strategy)
if strategy == "legacy" and hasattr(ctx.attr, "_global_mode") and ctx.attr._global_mode:
@ -60,7 +60,7 @@ def _compiler_name(ctx):
return "ngc"
elif strategy == "global":
return "ngc.ivy"
elif strategy == "local":
elif strategy == "aot":
return "ngtsc"
elif strategy == "jit":
return "tsc"
@ -82,7 +82,7 @@ def _enable_ivy_value(ctx):
return False
elif strategy == "global":
return True
elif strategy == "local":
elif strategy == "aot":
return "ngtsc"
elif strategy == "jit":
return "tsc"

View File

@ -25,7 +25,7 @@ jasmine_node_test(
"@ngdeps//shelljs",
],
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
)

View File

@ -33,5 +33,5 @@ jasmine_node_test(
"//packages/bazel/test/ngc-wrapped/empty:tsconfig.json",
"@build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
],
tags = ["fixme-ivy-local"],
tags = ["fixme-ivy-aot"],
)

View File

@ -5,7 +5,7 @@ package(default_visibility = ["//packages/bazel/test:__subpackages__"])
ng_module(
name = "empty",
srcs = ["empty.ts"],
tags = ["fixme-ivy-local"],
tags = ["fixme-ivy-aot"],
tsconfig = ":tsconfig.json",
deps = [
"//packages/core",