build: migrate determining if Ivy is enabled in typescript genrule files to use angular_ivy_enabled (#33983)
Use angular_ivy_enabled to determine if Ivy is being used for the ivy_test_selector.ts symbols. Additionally, remove the reflect_metadata genrules as we not longer have a "jit" compile option so all possible invocations result in the same generated file. Instead we can just commit this file. PR Close #33983
This commit is contained in:

committed by
Matias Niemelä

parent
6bf258178d
commit
a122311773
@ -7,6 +7,6 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* This variable shows the `blaze --define=compile=` value to make it available to runtime.
|
||||
* This variable shows if Ivy should be enabled at runtime.
|
||||
*/
|
||||
export const bazelDefineCompileValue = 'legacy';
|
||||
export const ivyEnabled = false;
|
@ -5,8 +5,7 @@
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {bazelDefineCompileValue} from './bazel_define_compile_value';
|
||||
import {ivyEnabled} from './angular_ivy_enabled';
|
||||
|
||||
/**
|
||||
* A function to conditionally include a test or a block of tests only when tests run against Ivy.
|
||||
@ -24,7 +23,7 @@ import {bazelDefineCompileValue} from './bazel_define_compile_value';
|
||||
* ivyEnabled && it(...);
|
||||
* ```
|
||||
*/
|
||||
export const ivyEnabled = 'aot' === (bazelDefineCompileValue as string);
|
||||
export {ivyEnabled};
|
||||
|
||||
/**
|
||||
* A function to conditionally skip the execution of tests that are not relevant when
|
||||
|
Reference in New Issue
Block a user