Modern tools like emacs' `eglot` rely on compile_commands.json to gather information about the project. Import the build script from Linux, adapting it to the core Xen binary.