bflattened / bflat

C# as you know it but with Go-inspired tooling (small, selfcontained, and native executables)
GNU Affero General Public License v3.0
3.56k stars 102 forks source link

`bflat` crashed my computer due to OOM #174

Closed ghost closed 4 months ago

ghost commented 4 months ago

Discussed in https://github.com/bflattened/bflat/discussions/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.

ghost commented 4 months ago

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.