Final fixups to get Hylo execution and binary working

This commit is contained in:
Matt Godbolt
2023-10-18 15:54:55 -05:00
parent 5e1b320ee2
commit c115a45ecb
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
# TODO: This install path is a best guess; we have no standard install path yet.
compilers=/usr/bin/hc
supportsBinary=true
supportsBinaryObject=false
compilerType=hylo
objdumper=objdump
# TODO: Replace with `version` when hc suppports this.

View File

@@ -27,10 +27,9 @@ export class HyloCompiler extends BaseCompiler {
outputFilename: string,
userOptions?: string[],
): string[] {
if (this.compiler.intelAsm && filters.intel && !filters.binary) {
return ['--emit', 'intel-asm', '-o', this.filename(outputFilename)];
} else {
return ['-o', this.filename(outputFilename)];
}
let options = ['-o', this.filename(outputFilename)];
// Theres's no equivalent to non-intel asm.
if (!filters.binary && !filters.binaryObject) options = options.concat('--emit', 'intel-asm');
return options;
}
}