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.63k stars 104 forks source link

Building on Linux #77

Closed ayesaac closed 1 year ago

ayesaac commented 1 year ago

When attempting to build BFlat (the compiler itself) on Linux, at the project build step (not targets), I get

Failed to download file "https://github.com/bflattened/runtime/releases/download/v7.0.2-rtm.22631.1/bflat-compiler-native-.zip".  Response status code does not indicate success: 404 (Not Found).

Same nuget config successfully builds on Windows, so guessing it's something with my Linux setup. Running on x64 Manjaro Arch, same issue when running dotnet build on cli, or using Rider.

MichalStrehovsky commented 1 year ago

The thing after the last hyphen should be one of:

https://github.com/bflattened/bflat/blob/200c770c4ad1bfc0030728190848632e1156cac6/src/bflat/bflat.csproj#L40-L41

I admit the detection is a bit janky. Can you try passing -p:CompilerHost=linux-glibc-x64 to dotnet build explicitly?

ayesaac commented 1 year ago

Yep, that's worked, cheers! I actually tried -p:CompilerHost=linux-x64 before posting this... :sweat_smile: