How to generate a compile_commands.json file on windows10?

I am a newer, i want to compile my code wiht C/C++ on windows10 by theia,but i look the https://github.com/theia-ide/theia/tree/master/packages/cpp, puzzled? how to generate a compile_commands.json file ??

[original thread by xinsuinizhuan]

Related threads: https://github.com/theia-ide/theia/issues/5583, https://github.com/theia-ide/theia/issues/4501#issuecomment-470633593.