IL: Fixes include path for Linux (#6922)

This commit is contained in:
Steve
2024-10-01 21:32:19 +09:00
committed by GitHub
parent 7f2c985a7f
commit 30b77d380e
2 changed files with 3 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
.assembly extern System.Console { }
.assembly extern System.Runtime { }
.class private auto ansi beforefieldinit Program extends [System.Runtime]System.Object
{

View File

@@ -164,7 +164,7 @@ class DotNetCompiler extends BaseCompiler {
.ver 1:0:0:0
}
.module CompilerExplorer.dll
#include "${path.join(programDir, sourceFile)}"
#include "${sourceFile}"
`;
const ilFilePath = path.join(programDir, `${AssemblyName}.il`);
@@ -265,6 +265,7 @@ class DotNetCompiler extends BaseCompiler {
options.push(
buildToBinary ? '-exe' : '-dll',
path.join(programDir, `${AssemblyName}.il`),
`-include:${programDir}`,
`-output:${path.join(programOutputPath, 'CompilerExplorer.dll')}`,
);
await fs.mkdirs(programOutputPath);