# compile ASM using armasm with MSYS2 in windows10

**URL:** https://discourse.cmake.org/t/compile-asm-using-armasm-with-msys2-in-windows10/2243
**Category:** Code
**Created:** [November 26, 2020, 3:11am UTC](https://discourse.cmake.org/t/compile-asm-using-armasm-with-msys2-in-windows10/2243 "2020-11-26T03:11:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dalianduzhi](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/d/eb8c5e/32.png) [@dalianduzhi](https://discourse.cmake.org/u/dalianduzhi)
#### Post date: [November 26, 2020, 3:11am UTC](https://discourse.cmake.org/t/compile-asm-using-armasm-with-msys2-in-windows10/2243/1 "2020-11-26T03:11:21Z")

</div>

I used the cmake + ninja and got the rule for compiling ASM file  
command = \armasm.exe @$RSP\_FILE -o $out $in  
description = Building ASM object $out  
rspfile = $RSP\_FILE  
rspfile\_content = $DEFINES $INCLUDES $FLAGS

but the @ is not recognised by armasm.exe, and I checked the cmake code.  
I found the CMAKE\_${lang}\_RESPONSE\_FILE\_LINK\_FLAG for ASM is not be set in ARMCC-ASM.cmak.

Why is it?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 26, 2020, 1:59pm UTC](https://discourse.cmake.org/t/compile-asm-using-armasm-with-msys2-in-windows10/2243/2 "2020-11-26T13:59:55Z")

</div>

I don’t know if that compiler is supported yet (I don’t see any `armasm` search logic at least). We’ll probably need to add support for it.

Could you please [file an issue](https://gitlab.kitware.com/cmake/cmake/-/issues)? Thanks.

Cc: @brad.king
