diff options
Diffstat (limited to 'lib/compilers/ispc.ts')
-rw-r--r-- | lib/compilers/ispc.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/compilers/ispc.ts b/lib/compilers/ispc.ts index d6eb03824..7c5717e0f 100644 --- a/lib/compilers/ispc.ts +++ b/lib/compilers/ispc.ts @@ -25,19 +25,20 @@ import Semver from 'semver'; import _ from 'underscore'; -import {CompilerInfo} from '../../types/compiler.interfaces'; +import {PreliminaryCompilerInfo} from '../../types/compiler.interfaces'; import {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces'; import {BaseCompiler} from '../base-compiler'; import {asSafeVer} from '../utils'; import {ISPCParser} from './argument-parsers'; +import {unwrap} from '../assert'; export class ISPCCompiler extends BaseCompiler { static get key() { return 'ispc'; } - constructor(info: CompilerInfo, env) { + constructor(info: PreliminaryCompilerInfo, env) { super(info, env); this.compiler.supportsIrView = true; this.compiler.irArg = ['--emit-llvm-text']; @@ -56,7 +57,7 @@ export class ISPCCompiler extends BaseCompiler { } override async generateIR(inputFilename: string, options: string[], filters: ParseFiltersAndOutputOptions) { - const newOptions = [...options, ...this.compiler.irArg, '-o', this.getIrOutputFilename(inputFilename)]; + const newOptions = [...options, ...unwrap(this.compiler.irArg), '-o', this.getIrOutputFilename(inputFilename)]; return super.generateIR(inputFilename, newOptions, filters); } |