bytecodealliance / cranelift-jit-demo

JIT compiler and runtime for a toy language, using Cranelift
Apache License 2.0
649 stars 61 forks source link

Demo also runs in Windows #6

Closed sophiajt closed 4 years ago

sophiajt commented 6 years ago

I removed the assert to see that the demo does work in Windows. I haven't dug in further to see why it works, but figured I'd share.

skyne98 commented 5 years ago

I think that the limitation described there is not true any more.

aleksmelnikov commented 5 years ago

I commented this code in the demo:

 // Windows calling conventions are not supported yet.
 //       if cfg!(windows) {
 //          unimplemented!();
// }

Then I successful compiled the demo on linux for windows target: cargo build --release --target x86_64-pc-windows-gnu

Then I could successful run the demo binary on Windows 10.