bflattened / bflat

C# as you know it but with Go-inspired tooling (small, selfcontained, and native executables)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`bflat` crashed my computer due to OOM

opened this issue · comments

Discussed in #173

Originally posted by iahung2 February 8, 2024
Steps to reproduce:

Download https://github.com/yanghuan/CSharp.lua/releases/download/2.0/CSharp.lua-2.0.zip and extract to CSharp.lua-2.0 directory.

Download https://github.com/yanghuan/CSharp.lua/archive/refs/tags/2.0.zip and extract CSharp.lua-2.0\CSharp.lua.Launcher\Program.cs into CSharp.lua-2.0\CSharp.lua (CSharp.lua-2.0 directory is extracted from the archive CSharp.lua-2.0.zip as mentioned above).

Try to compile Program.cs with bflat:

bflat build Program.cs -r:CSharp.lua.dll -r:Microsoft.CodeAnalysis.dll -r:Microsoft.CodeAnalysis.CSharp.dll

I believe this to be a bug. So I created an issue from the discussion thread.

Or maybe I'm using it the wrong way. bflata doesn't work. I can't compile CSharp.lua.csproj to get CSharp.lua.dll myself, so I use this trick to reuse the precompiled CSharp.lua.dll from CSharp.lua release. My goal is to turn CSharp.Lua.Launcher into native. Now I don't think it's possible.