CMAKE_EXPORT_COMPILE_COMMANDS does not list assembly code files in the generated json file

My project has both C and ASM source files. With -DCMAKE_EXPORT_COMPILE_COMMANDS=ON from the command line, a compile_commands.json file is generated with all C source files listed in it, but none of ASM files are listed. Is this an intentional behavior or a bug?

Probably a bug, please open a bug report in the issue tracker here:

https://gitlab.kitware.com/cmake/cmake/issues

Issue created: https://gitlab.kitware.com/cmake/cmake/issues/20059