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
committed by Alex Rickabaugh
parent a012ffbd5b
commit cace4dea64
35 changed files with 59 additions and 63 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",

View File

@ -20,8 +20,8 @@ jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",
@ -32,8 +32,8 @@ jasmine_node_test(
ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -22,8 +22,8 @@ jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",
@ -34,8 +34,8 @@ jasmine_node_test(
ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -12,7 +12,7 @@ ng_module(
),
module_name = "app_built",
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [

View File

@ -11,7 +11,7 @@ ts_library(
],
),
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
@ -26,7 +26,7 @@ jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [

View File

@ -20,8 +20,8 @@ jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -29,7 +29,7 @@ jasmine_node_test(
srcs = ["spec.js"],
data = [":flat_module_index"],
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
)

View File

@ -43,7 +43,7 @@ jasmine_node_test(
"//packages/core:npm_package",
],
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
@ -81,7 +81,7 @@ jasmine_node_test(
"//packages/router:npm_package",
],
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
@ -116,7 +116,7 @@ jasmine_node_test(
"//packages/router:npm_package",
],
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [

View File

@ -1,3 +1,3 @@
Tests in this directory should be run with:
bazel test --define=compile=local packages/compiler-cli/test/compliance:compliance
bazel test --define=compile=aot packages/compiler-cli/test/compliance:compliance

View File

@ -38,7 +38,7 @@ jasmine_node_test(
"//packages/core:npm_package",
],
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
@ -72,7 +72,7 @@ jasmine_node_test(
"//packages/forms:npm_package",
],
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [

View File

@ -26,7 +26,7 @@ jasmine_node_test(
"//packages/router:npm_package",
],
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [

View File

@ -75,8 +75,8 @@ jasmine_node_test(
"//packages/core:npm_package",
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",
@ -91,8 +91,8 @@ jasmine_node_test(
ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -52,8 +52,8 @@ jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",
@ -70,8 +70,8 @@ jasmine_node_test(
ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -60,8 +60,8 @@ jasmine_node_test(
"angular/packages/core/test/render3/load_domino",
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":render3_node_lib",
@ -72,8 +72,8 @@ jasmine_node_test(
ts_web_test_suite(
name = "render3_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":render3_lib",

View File

@ -36,8 +36,8 @@ ts_web_test_suite(
":elements_test_bootstrap_scripts",
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
# do not sort
deps = [

View File

@ -19,8 +19,8 @@ jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",
@ -31,8 +31,8 @@ jasmine_node_test(
ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -18,7 +18,7 @@ ts_library(
jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = ["fixme-ivy-local"],
tags = ["fixme-ivy-aot"],
deps = [
":test_lib",
"//tools/testing:node",
@ -27,7 +27,7 @@ jasmine_node_test(
ts_web_test_suite(
name = "test_web",
tags = ["fixme-ivy-local"],
tags = ["fixme-ivy-aot"],
deps = [
":test_lib",
"@ngdeps//karma",

View File

@ -23,8 +23,8 @@ jasmine_node_test(
"//packages/forms:npm_package",
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -32,8 +32,8 @@ ts_web_test_suite(
"//packages/platform-browser/test:browser/static_assets/200.html",
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -25,8 +25,8 @@ jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",
@ -37,8 +37,8 @@ jasmine_node_test(
ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -30,8 +30,8 @@ jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",
@ -45,8 +45,8 @@ ts_web_test_suite(
":static_assets/test.html",
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -26,8 +26,8 @@ jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -20,7 +20,7 @@ ts_library(
jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = ["fixme-ivy-local"],
tags = ["fixme-ivy-aot"],
deps = [
":test_lib",
"//tools/testing:node",
@ -30,8 +30,8 @@ jasmine_node_test(
ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -23,8 +23,8 @@ jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",
@ -35,8 +35,8 @@ jasmine_node_test(
ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -17,7 +17,7 @@ ts_library(
testonly = True,
srcs = ["aot_router_bootstrap.spec.ts"],
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [
@ -33,7 +33,7 @@ jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = [
"fixme-ivy-local",
"fixme-ivy-aot",
"no-ivy-jit",
],
deps = [

View File

@ -16,8 +16,8 @@ ts_library(
ts_web_test_suite(
name = "test_web",
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",

View File

@ -20,7 +20,7 @@ ts_library(
jasmine_node_test(
name = "test",
bootstrap = ["angular/tools/testing/init_node_spec.js"],
tags = ["fixme-ivy-local"],
tags = ["fixme-ivy-aot"],
deps = [
":test_lib",
"//tools/testing:node",
@ -29,7 +29,7 @@ jasmine_node_test(
ts_web_test_suite(
name = "test_web",
tags = ["fixme-ivy-local"],
tags = ["fixme-ivy-aot"],
deps = [
":test_lib",
],

View File

@ -23,8 +23,8 @@ ts_web_test_suite(
"//:angularjs_scripts",
],
tags = [
"fixme-ivy-aot",
"fixme-ivy-jit",
"fixme-ivy-local",
],
deps = [
":test_lib",