-
Notifications
You must be signed in to change notification settings - Fork 200
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
C# enable the runtime numbers test #718
Conversation
add features for the 2 dotnet runtime flavours, naot and mono
8ebc6f8
to
dadf8ab
Compare
if cfg!(windows) { | ||
c_sharp.push(path); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: When mono is added we will want to still add this for the linux case? Since we aren't running the tests on linux right now, is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is the yml matrix in build.yml
tries to run all the OSes and if it creates the c# files then it will fail to compile them. Agree we will have to revisit this for Mono, not sure about MacOS, but for Linux we will want it.
Co-authored-by: James Sturtevant <[email protected]>
Co-authored-by: James Sturtevant <[email protected]>
…-bindgen into csharp-runtime-numbers
This PR enables the first runtime test for c#.
It compiles using dotnet 8 and NativeAOT-LLVM which unfortunately requires clang from emscripten as well as the WASI SDK (see WebAssembly/wasi-sdk#326). So we download and install emscripten as well as dotnet 8. Tha NativeAOT-LLVM compiler is only supported on windows so the yml has the windows build separated out.
Dotnet 8 is required as we are using
static abstract
interface methods. This shouldn't be a major issue as dotnet 8 is coming out in a few weeks.Also moved some of the casting to the
Instruction
emit
cases.Added 2 new features,
csharp-naot
andcsharp-mono
which bring incsharp
.csharp-mono
has no implementation here for the runtime test.