| ▲ | doublerabbit 6 hours ago | |||||||
COI compiles on FreeBSD but the example app didn't.
Yet exists within /usr/includeNot a rant, but developers, please include testing on FreeBSD. Git issue raised. | ||||||||
| ▲ | io_eric 6 hours ago | parent [-] | |||||||
Fixed! The issue was specific to FreeBSD's clang setup. When compiling with --target=wasm32 and -nostdlib, clang on Linux/macOS still finds minimal freestanding headers for the wasm32 target, but FreeBSD's clang doesn't have these configured by default - even though stdint.h exists, it's not in the search path for cross-compilation targets. The fix was adding freestanding stdint.h and stddef.h to webcc's compat layer using compiler built-ins (__SIZE_TYPE__, etc.). This makes webcc work consistently across all platforms without relying on platform-specific clang configurations. I hope it works now for you - hit me up if there are still problems! | ||||||||
| ||||||||