aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/hook.ts
diff options
context:
space:
mode:
authornickpdemarco <nickpdemarco@gmail.com>2023-10-11 14:43:05 -0400
committernickpdemarco <nickpdemarco@gmail.com>2023-10-11 14:43:05 -0400
commit9cda199e40c920fcc9c53082b0dabb17d31a8b7f (patch)
treea4e9a03a9feea17376f5990e19c12818d32ec95e /lib/compilers/hook.ts
parent55a2b1455f823026c78b9219f93799af00ef60ae (diff)
parent10796b3696cf1eef928de8c750b4d3350ee0c2db (diff)
downloadcompiler-explorer-9cda199e40c920fcc9c53082b0dabb17d31a8b7f.tar.gz
compiler-explorer-9cda199e40c920fcc9c53082b0dabb17d31a8b7f.zip
Merge main, resolve conflicts with vala
Diffstat (limited to 'lib/compilers/hook.ts')
-rw-r--r--lib/compilers/hook.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compilers/hook.ts b/lib/compilers/hook.ts
index c731cc530..14eb27b8d 100644
--- a/lib/compilers/hook.ts
+++ b/lib/compilers/hook.ts
@@ -64,7 +64,7 @@ export class HookCompiler extends BaseCompiler {
compiler: string,
options: string[],
inputFilename: string,
- execOptions: ExecutionOptions,
+ execOptions: ExecutionOptions & {env: Record<string, string>},
): Promise<CompilationResult> {
const dirPath = path.dirname(inputFilename);
const outputFilename = this.getOutputFilename(dirPath);
@@ -72,10 +72,10 @@ export class HookCompiler extends BaseCompiler {
return super.runCompiler(compiler, options, inputFilename, execOptions);
}
- override processAsm(result, filters, options) {
+ override async processAsm(result, filters, options) {
// Ignoring `trim` filter because it is not supported by Hook.
filters.trim = false;
- const _result = super.processAsm(result, filters, options);
+ const _result = await super.processAsm(result, filters, options);
const commentRegex = /^\s*;(.*)/;
const instructionRegex = /^\s{2}(\d+)(.*)/;
const asm = _result.asm;