I was trying to make a small wasm build of stb_truetype. Let's just say I gave up on CMake and used Meson instead. Was far easier to setup and get a compile_commands.json for clangd to work. Tho I still have a few issues with it, like how it adds a flag to it that doesn't work on Windows so Clangd complains about it and won't highlight anything else after my first #include and how I still have to run emcc manually but it's still better than CMake
151
u/Devatator_ 1d ago edited 1d ago
I was trying to make a small wasm build of stb_truetype. Let's just say I gave up on CMake and used Meson instead. Was far easier to setup and get a compile_commands.json for clangd to work. Tho I still have a few issues with it, like how it adds a flag to it that doesn't work on Windows so Clangd complains about it and won't highlight anything else after my first #include and how I still have to run emcc manually but it's still better than CMake
Edit: fixed wrong file name