void Compile(AOTOptions options, TestFileEnumerator files, AOTCompilerType compilerType = AOTCompilerType.Bundled64, RunCommandDelegate onRunDelegate = null) { AOTCompiler compiler = new AOTCompiler(options, compilerType) { RunCommand = onRunDelegate != null ? onRunDelegate : OnRunCommand, ParallelOptions = new ParallelOptions() { MaxDegreeOfParallelism = 1 }, XamarinMacPrefix = Driver.WalkUpDirHierarchyLookingForLocalBuild(), // HACK - AOT test shouldn't need this from driver.cs }; compiler.Compile(files); }
void Compile (AOTOptions options, TestFileEnumerator files, AOTCompilerType compilerType = AOTCompilerType.Bundled64, RunCommandDelegate onRunDelegate = null, bool isRelease = false, bool isModern = false) { AOTCompiler compiler = new AOTCompiler (options, compilerType, isModern, isRelease) { RunCommand = onRunDelegate != null ? onRunDelegate : OnRunCommand, ParallelOptions = new ParallelOptions () { MaxDegreeOfParallelism = 1 }, XamarinMacPrefix = Xamarin.Tests.Configuration.SdkRootXM, }; try { Profile.Current = new XamarinMacProfile (); compiler.Compile (files); } finally { Profile.Current = null; } }
void Compile(AOTOptions options, TestFileEnumerator files, AOTCompilerType compilerType = AOTCompilerType.Bundled64, RunCommandDelegate onRunDelegate = null, bool isRelease = false, bool isModern = false) { AOTCompiler compiler = new AOTCompiler(options, compilerType, isModern, isRelease) { RunCommand = onRunDelegate != null ? onRunDelegate : OnRunCommand, ParallelOptions = new ParallelOptions() { MaxDegreeOfParallelism = 1 }, XamarinMacPrefix = Driver.WalkUpDirHierarchyLookingForLocalBuild(), // HACK - AOT test shouldn't need this from driver.cs }; try { Profile.Current = new XamarinMacProfile(); compiler.Compile(files); } finally { Profile.Current = null; } }
public void ParsingNone_DoesNoAOT() { compiler.Parse("none"); Assert.IsFalse(compiler.IsAOT, "Parsing none should not be IsAOT"); AssertThrowErrorWithCode(() => compiler.Compile(MonoType.Bundled64, new TestFileEnumerator(FullAppFileList)), 99); }