mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
IL: Fixes include path for Linux (#6922)
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
.assembly extern System.Console { }
|
.assembly extern System.Console { }
|
||||||
|
.assembly extern System.Runtime { }
|
||||||
|
|
||||||
.class private auto ansi beforefieldinit Program extends [System.Runtime]System.Object
|
.class private auto ansi beforefieldinit Program extends [System.Runtime]System.Object
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ class DotNetCompiler extends BaseCompiler {
|
|||||||
.ver 1:0:0:0
|
.ver 1:0:0:0
|
||||||
}
|
}
|
||||||
.module CompilerExplorer.dll
|
.module CompilerExplorer.dll
|
||||||
#include "${path.join(programDir, sourceFile)}"
|
#include "${sourceFile}"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const ilFilePath = path.join(programDir, `${AssemblyName}.il`);
|
const ilFilePath = path.join(programDir, `${AssemblyName}.il`);
|
||||||
@@ -265,6 +265,7 @@ class DotNetCompiler extends BaseCompiler {
|
|||||||
options.push(
|
options.push(
|
||||||
buildToBinary ? '-exe' : '-dll',
|
buildToBinary ? '-exe' : '-dll',
|
||||||
path.join(programDir, `${AssemblyName}.il`),
|
path.join(programDir, `${AssemblyName}.il`),
|
||||||
|
`-include:${programDir}`,
|
||||||
`-output:${path.join(programOutputPath, 'CompilerExplorer.dll')}`,
|
`-output:${path.join(programOutputPath, 'CompilerExplorer.dll')}`,
|
||||||
);
|
);
|
||||||
await fs.mkdirs(programOutputPath);
|
await fs.mkdirs(programOutputPath);
|
||||||
|
|||||||
Reference in New Issue
Block a user