# CMAKE\_EXPORT\_COMPILE\_COMMANDS does not list assembly code files in the generated json file

**URL:** https://discourse.cmake.org/t/cmake-export-compile-commands-does-not-list-assembly-code-files-in-the-generated-json-file/283
**Category:** Usage
**Created:** [November 29, 2019, 11:08am UTC](https://discourse.cmake.org/t/cmake-export-compile-commands-does-not-list-assembly-code-files-in-the-generated-json-file/283 "2019-11-29T11:08:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![oscarh](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/o/aca169/32.png) [@oscarh](https://discourse.cmake.org/u/oscarh)
#### Post date: [November 29, 2019, 11:08am UTC](https://discourse.cmake.org/t/cmake-export-compile-commands-does-not-list-assembly-code-files-in-the-generated-json-file/283/1 "2019-11-29T11:08:22Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [November 30, 2019, 10:09pm UTC](https://discourse.cmake.org/t/cmake-export-compile-commands-does-not-list-assembly-code-files-in-the-generated-json-file/283/2 "2019-11-30T22:09:35Z")

</div>

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

[https://gitlab.kitware.com/cmake/cmake/issues](https://gitlab.kitware.com/cmake/cmake/issues)

---

<div class="post-metadata">

### Author: ![oscarh](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/o/aca169/32.png) [@oscarh](https://discourse.cmake.org/u/oscarh)
#### Post date: [December 2, 2019, 7:24am UTC](https://discourse.cmake.org/t/cmake-export-compile-commands-does-not-list-assembly-code-files-in-the-generated-json-file/283/3 "2019-12-02T07:24:55Z")

</div>

Issue created: [https://gitlab.kitware.com/cmake/cmake/issues/20059](https://gitlab.kitware.com/cmake/cmake/issues/20059)
