Comments (3)
You can avoid to specify all .cs files.
Just do a cd <your proj path>
and then bflat build
.
It will take the whole source code
from bflat.
I don't have plans to add csproj/MSBuild/NuGet support - I'm not trying to replicate dotnet
.
Like @andreakarasho wrote above - bflat build
will build all *.cs source files in the directory, recursively.
If you need more control than that, you're better off using dotnet with the NativeAOT NuGet package: https://github.com/dotnet/runtimelab/tree/feature/NativeAOT/samples/HelloWorld
You can configure NativeAOT through this mechanism to get pretty close to bflat: https://github.com/dotnet/runtimelab/blob/feature/NativeAOT/docs/using-nativeaot/optimizing.md
At that point the only difference is:
- bflat can produce a bit smaller executables
- bflat can crosstarget to Linux
- bflat requires a lot less configuration to make it produce output because it has opinionated defaults
from bflat.
If you need more control than that, you're better off using dotnet with the NativeAOT NuGet package
I went this path.
bflat can produce a bit smaller executables
With all the options turned on to get a small as possible binary using the nAOT NuGet package, the difference in my testing was only a few hundred kilobytes (~400).
from bflat.
Related Issues (20)
- Detected as malware. HOT 1
- Compiler exits with status code 0 even there are errors. Confusing automated platform as a result HOT 2
- Memory management with Zero stdlib? HOT 2
- run in docker HOT 3
- Cannot run Sokol sample on Linux (Ubuntu 22.04 WSL2) HOT 6
- [zerolib] can you give a printf combined with an example of printing string (including Chinese) Thank HOT 4
- [zerolib] Span<T> is readonly
- No auto library specifying HOT 9
- [zerolib x86] Implement Concat, string Assignment issues? HOT 1
- Debugging doesn't work on Linux HOT 3
- Tight inner loop recommended in /src/zerolib doesn't work on Linux (doesn't link 3 SystemNative functions) HOT 4
- Can't reference System.Diagnostics with --stdlib:zero HOT 5
- Which language features not available in the Zero stdlib? HOT 12
- [zerolib] `Console.Write` and some overloads
- [zerolib] `Console.WriteLine` and some overloads
- Please add this method to `ClassConstructionRunner` to make `ReadOnlySpan` returning methods compile HOT 6
- [zerolib] What is the encoding of `string`? HOT 1
- [zerolib] Implement `System.Math` HOT 5
- [zerolib] Binding to C standard library HOT 3
- On Linux, command line arguments cannot contain multi-byte codepoints because of limitation on the String type HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bflat.