compilationRoots.Add(new ExportedMethodsRootProvider(module));
}
- string[] runtimeOptions = Get(_command.RuntimeOptions);
- if (entrypointModule != null)
- {
- compilationRoots.Add(new MainMethodRootProvider(entrypointModule, CreateInitializerList(typeSystemContext)));
- compilationRoots.Add(new RuntimeConfigurationRootProvider(runtimeOptions));
- compilationRoots.Add(new ExpectedIsaFeaturesRootProvider(instructionSetSupport));
- }
-
bool nativeLib = Get(_command.NativeLib);
if (multiFile)
{
compilationGroup = new SingleFileCompilationModuleGroup();
}
+ string[] runtimeOptions = Get(_command.RuntimeOptions);
if (nativeLib)
{
// Set owning module of generated native library startup method to compiler generated module,
compilationRoots.Add(new RuntimeConfigurationRootProvider(runtimeOptions));
compilationRoots.Add(new ExpectedIsaFeaturesRootProvider(instructionSetSupport));
}
+ else if (entrypointModule != null)
+ {
+ compilationRoots.Add(new MainMethodRootProvider(entrypointModule, CreateInitializerList(typeSystemContext)));
+ compilationRoots.Add(new RuntimeConfigurationRootProvider(runtimeOptions));
+ compilationRoots.Add(new ExpectedIsaFeaturesRootProvider(instructionSetSupport));
+ }
foreach (var rdXmlFilePath in Get(_command.RdXmlFilePaths))
{