diff options
Diffstat (limited to 'lib/compilers')
-rw-r--r-- | lib/compilers/java.ts | 3 | ||||
-rw-r--r-- | lib/compilers/kotlin.ts | 3 | ||||
-rw-r--r-- | lib/compilers/win32-mingw-clang.ts | 11 | ||||
-rw-r--r-- | lib/compilers/win32-mingw-gcc.ts | 11 |
4 files changed, 20 insertions, 8 deletions
diff --git a/lib/compilers/java.ts b/lib/compilers/java.ts index 320469f6e..c01940c57 100644 --- a/lib/compilers/java.ts +++ b/lib/compilers/java.ts @@ -35,6 +35,7 @@ import {logger} from '../logger.js'; import * as utils from '../utils.js'; import {JavaParser} from './argument-parsers.js'; +import {BypassCache} from '../../types/compilation/compilation.interfaces.js'; export class JavaCompiler extends BaseCompiler { static get key() { @@ -128,7 +129,7 @@ export class JavaCompiler extends BaseCompiler { } override async handleInterpreting(key, executeParameters) { - const compileResult = await this.getOrBuildExecutable(key); + const compileResult = await this.getOrBuildExecutable(key, BypassCache.None); if (compileResult.code === 0) { executeParameters.args = [ '-Xss136K', // Reduce thread stack size diff --git a/lib/compilers/kotlin.ts b/lib/compilers/kotlin.ts index 0b5cce585..9b1bab103 100644 --- a/lib/compilers/kotlin.ts +++ b/lib/compilers/kotlin.ts @@ -22,6 +22,7 @@ // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. +import {BypassCache} from '../../types/compilation/compilation.interfaces.js'; import type {PreliminaryCompilerInfo} from '../../types/compiler.interfaces.js'; import type {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces.js'; @@ -98,7 +99,7 @@ export class KotlinCompiler extends JavaCompiler { ...key, options: ['-include-runtime', '-d', 'example.jar'], }; - const compileResult = await this.getOrBuildExecutable(alteredKey); + const compileResult = await this.getOrBuildExecutable(alteredKey, BypassCache.None); executeParameters.args = [ '-Xss136K', // Reduce thread stack size '-XX:CICompilerCount=2', // Reduce JIT compilation threads. 2 is minimum diff --git a/lib/compilers/win32-mingw-clang.ts b/lib/compilers/win32-mingw-clang.ts index 83c98c52e..47a6159a8 100644 --- a/lib/compilers/win32-mingw-clang.ts +++ b/lib/compilers/win32-mingw-clang.ts @@ -24,7 +24,12 @@ import path from 'path'; -import {BuildResult, CompilationResult, ExecutionOptions} from '../../types/compilation/compilation.interfaces.js'; +import { + BuildResult, + BypassCache, + CompilationResult, + ExecutionOptions, +} from '../../types/compilation/compilation.interfaces.js'; import {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces.js'; import {copyNeededDlls} from '../win-utils.js'; @@ -102,8 +107,8 @@ export class Win32MingWClang extends ClangCompiler { return result; } - override async handleExecution(key, executeParameters): Promise<CompilationResult> { + override async handleExecution(key, executeParameters, bypassCache: BypassCache): Promise<CompilationResult> { const execOptions = this.getDefaultExecOptions(); - return super.handleExecution(key, {...executeParameters, env: execOptions.env}); + return super.handleExecution(key, {...executeParameters, env: execOptions.env}, bypassCache); } } diff --git a/lib/compilers/win32-mingw-gcc.ts b/lib/compilers/win32-mingw-gcc.ts index 4e3106bc5..04b43f985 100644 --- a/lib/compilers/win32-mingw-gcc.ts +++ b/lib/compilers/win32-mingw-gcc.ts @@ -24,7 +24,12 @@ import path from 'path'; -import {BuildResult, CompilationResult, ExecutionOptions} from '../../types/compilation/compilation.interfaces.js'; +import { + BuildResult, + BypassCache, + CompilationResult, + ExecutionOptions, +} from '../../types/compilation/compilation.interfaces.js'; import {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces.js'; import {copyNeededDlls} from '../win-utils.js'; @@ -102,8 +107,8 @@ export class Win32MingWGcc extends GCCCompiler { return result; } - override async handleExecution(key, executeParameters): Promise<CompilationResult> { + override async handleExecution(key, executeParameters, bypassCache: BypassCache): Promise<CompilationResult> { const execOptions = this.getDefaultExecOptions(); - return super.handleExecution(key, {...executeParameters, env: execOptions.env}); + return super.handleExecution(key, {...executeParameters, env: execOptions.env}, bypassCache); } } |