Run Build Command(s):/usr/bin/ninja cmTC_46f5a && [1/2] Building CXX object CMakeFiles/cmTC_46f5a.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTC_46f5a
FAILED: cmTC_46f5a
: && /home/theo/my-config/scripts/bin/zigcxxwasi CMakeFiles/cmTC_46f5a.dir/testCXXCompiler.cxx.o -o cmTC_46f5a && :
wasm-ld: error: entry symbol not defined (pass --no-entry to suppress): _start
ninja: build stopped: subcommand failed.
It seems like zig c++ doesn't compile with wasm32-freestanding-musl with cmake because of this wasm-ld error. It says I need to use build-lib in the zig docs, but that's not an option with cmake and zig c++...
I also tried using wasm32-wasi but it complains that it can't find /usr/include files even though it should be using a different target than my native system.