Commit bb3ddac
fix: resolve CMake compiler test failure in freestanding CI builds
The freestanding CI builds were failing during CMake's initial compiler test
because the -ffreestanding flag was causing linker issues. The linker expected
a main() function but freestanding environments may not have one.
This fix sets CMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY when freestanding
mode is enabled, which instructs CMake to skip the linking step during
compiler tests and only compile to static libraries.
This resolves the undefined reference to main error in CI while maintaining
proper freestanding compilation semantics.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a6a5b61 commit bb3ddac
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
| |||
0 commit comments