diff options
Diffstat (limited to 'lib/compilers/dotnet.ts')
-rw-r--r-- | lib/compilers/dotnet.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/compilers/dotnet.ts b/lib/compilers/dotnet.ts index e631b5737..5b767ceda 100644 --- a/lib/compilers/dotnet.ts +++ b/lib/compilers/dotnet.ts @@ -259,10 +259,12 @@ class DotNetCompiler extends BaseCompiler { execOptions.maxOutput = 1024 * 1024 * 1024; const compilerResult = await super.runCompiler(compiler, publishOptions, inputFilename, execOptions); - if (compilerResult.code === 0) { - await fs.createFile(this.getOutputFilename(programDir, this.outputFilebase)); + if (compilerResult.code !== 0) { + return compilerResult; } + await fs.createFile(this.getOutputFilename(programDir, this.outputFilebase)); + const version = '// ilc ' + toolVersion; const output = await fs.readFile(jitOutFile); |