diff --git a/etc/config/hylo.defaults.properties b/etc/config/hylo.defaults.properties index 8c5758ab9..8df1fddef 100644 --- a/etc/config/hylo.defaults.properties +++ b/etc/config/hylo.defaults.properties @@ -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. diff --git a/lib/compilers/hylo.ts b/lib/compilers/hylo.ts index e73d09d44..fc8e89332 100644 --- a/lib/compilers/hylo.ts +++ b/lib/compilers/hylo.ts @@ -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; } }