Add support for the Fil-C toolchain
Is your feature request related to a problem? Please describe.
Fil-C is a new compiler that compiles 100% memory safe C and C++ binaries.
Releases are found here
It is based on Clang 20.1.8 so all the usual flags work.
Describe the solution you'd like
- ideally it should be available as an xmake-repo package for zero setup
- binaries are not ABI compatible with standard C or C++ so a new package target type would be needed to compile xmake packages with the toolchain
Describe alternatives you've considered
No response
Additional context
No response
you can open a pr to add it in xmake-repo first.
@waruqi , that's the package added. I've looked at adding support myself but I don't think just adding it like zig c/c++, for example would work as is since we need a way of detecting Fil-C in packages and conditionally applying patches.
Adding the package is just the first step.
xmake now allows for fully custom toolchains in user projects without requiring built-in xmake support.
you can refer
- https://github.com/xmake-io/xmake/tree/dev/tests/apis/custom_toolchain
- https://xmake.io/guide/project-configuration/toolchain-configuration.html#custom-toolchains
then bind your custom toolchain and package.
- https://github.com/xmake-io/xmake/blob/c5d08dcde1187fbf3903d51d63af8e15e28650c1/tests/projects/package/toolchain_muslcc/xmake.lua#L36
You can work on it in your own project first. Once it's fully functional, you can submit this patch to xmake.