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); }
public void Init() { compiler = new AOTCompiler() { RunCommand = OnRunCommand, ParallelOptions = new ParallelOptions() { MaxDegreeOfParallelism = 1 }, XamarinMacPrefix = Driver.WalkUpDirHierarchyLookingForLocalBuild(), // HACK - AOT test shouldn't need this from driver.cs }; commandsRun = new List <Tuple <string, string> > (); }
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; } }