build: remove ivy JIT mode (#26863)

PR Close #26863
This commit is contained in:
Misko Hevery
2018-11-01 21:23:06 -07:00
committed by Kara Erickson
parent c13f46c7c5
commit 7d2a746090
36 changed files with 36 additions and 94 deletions

View File

@ -0,0 +1,12 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* 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
*/
/**
* This variable shows the `blaze --define=compile=` value to make it available to runtime.
*/
export const bazelDefineCompileValue = 'legacy';

View File

@ -0,0 +1,22 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* 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';
/**
* A global method which is used to conditionally block the execution of tests.
*
* ```
* fixmeIvy('some reason') && describe(...);
* ```
*
* The above will prevent the execution of the test(s) in Ivy mode, until they can be fixed.
*/
export function fixmeIvy(reason: string): boolean {
return 'aot' !== (bazelDefineCompileValue as string);
}