You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/BAZEL.md
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -72,19 +72,20 @@ keeps the outputs up-to-date as you save sources.
72
72
73
73
If you're experiencing problems with seemingly unrelated tests failing, it may be because you're not using the proper flags with your Bazel test runs in Angular.
74
74
75
-
See also: [`//.bazelrc`](https://github.com/angular/angular/blob/master/.bazelrc) where `--define=ivy=false` is defined as default.
75
+
See also: [`//.bazelrc`](https://github.com/angular/angular/blob/master/.bazelrc) where `--define=compile=legacy` is defined as default.
76
76
77
77
-`--config=debug`: build and launch in debug mode (see [debugging](#debugging) instructions below)
78
78
-`--test_arg=--node_options=--inspect=9228`: change the inspector port.
79
79
-`--define=compile=<option>` Controls if ivy or legacy mode is enabled. This switches which compiler is used (ngc, ngtsc, or a tsc pass-through mode).
80
80
-`legacy`: (default behavior) compile against View Engine, e.g. `--define=compile=legacy`
81
81
-`jit`: Compile in ivy JIT mode, e.g. `--define=compile=jit`
82
82
-`aot`: Compile in ivy AOT move, e.g. `--define=compile=aot`
83
-
-`--test_tag_filters=<tag>`: filter tests down to tags defined in the `tag` config
84
-
of your rules in any given `BUILD.bazel`.
85
-
- `ivy-jit`: This flag should be set for tests that should be excuted with ivy JIT, e.g. `--test_tag_filters=ivy-jit`. For this, you may have to include `--define=compile=jit`.
86
-
- `ivy-aot`: Only run tests that have to do with ivy AOT. For this, you may have to include `--define=compile=aot`, e.g. `--test_tag_filters=ivy-aot`..
87
-
- `ivy-only`: Only run ivy related tests, e.g. `--test_tag_filters=ivy-only`.
83
+
-`--test_tag_filters=<tag>`: filter tests down to tags defined in the `tag` config of your rules in any given `BUILD.bazel`.
84
+
-`no-ivy-aot`: Useful for excluding build and test targets that are not meant to be executed in Ivy AOT mode (`--define=compile=aot`).
85
+
-`no-ivy-jit`: Useful for excluding build and test targets that are not meant to be executed in Ivy JIT mode (`--define=compile=jit`).
86
+
-`ivy-only`: Useful for excluding all Ivy build and tests targets with `--define=compile=legacy`.
87
+
-`fixme-ivy-aot`: Useful for including/excluding build and test targets that are currently broken in Ivy AOT mode (`--define=compile=aot`).
88
+
-`fixme-ivy-jit`: Useful for including/excluding build and test targets that are currently broken in Ivy JIT mode (`--define=compile=jit`).
0 commit comments