Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build Native AOT 8.0 on all platforms #2593

Open
swtrse opened this issue Jul 22, 2024 · 3 comments
Open

Cannot build Native AOT 8.0 on all platforms #2593

swtrse opened this issue Jul 22, 2024 · 3 comments

Comments

@swtrse
Copy link

swtrse commented Jul 22, 2024

This is in terms of the issue a copy of #2548.

However, since I run into this problem on windows, Linux and mac and based on my code review this would be a problem for all platforms.
Since all platforms are affected, I created this issue because it should be taken care of with higher priority.

@swtrse
Copy link
Author

swtrse commented Jul 26, 2024

AOT 9.0 do also fail with the same reason

@swtrse
Copy link
Author

swtrse commented Aug 13, 2024

As a workaround. Since the Attribute is not working but if you put that logic into a customConfig it will work.
Just for example

public IEnumerable<Job> GetJobs()
{
	Runtime[] runtimes = [CoreRuntime.Core80, CoreRuntime.Core90, NativeAotRuntime.Net80, NativeAotRuntime.Net90];
	foreach (var runtime in runtimes)
	{
		//var sourceJob = Job.LongRun;
		var sourceJob = Job.ShortRun;
		var baseJob = sourceJob.WithRuntime(runtime).WithId($"{sourceJob.Id}-{runtime.Name}").WithToolchain(new InProcessEmitToolchain(TimeSpan.FromHours(24D), true));
		yield return baseJob;
	}
}

@timcassell
Copy link
Collaborator

Is it working on v0.14.0? (#2548 (comment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants