Project Setup: add IAR Embedded Workbench for Arm

Fangrui Song 2019-09-08 19:01:31 -07:00
parent e35c56947f
commit fa3685db9c

@ -227,6 +227,20 @@ If the compiler driver is a GCC cross-compiler, `--target=` may be required. Sup
Otherwise clang will `error: unknown target CPU 'armv7a'`.
#### IAR Embedded Workbench for Arm
See <https://github.com/MaskRay/ccls/issues/476>.
```
%compile_commands.json
-target
armv7-linux-gnueabi
-D__ICCARM__
-U__GNUC__
-U__clang__
-isystem../Config/exec/arm/inc/c
```
## `compile_commands.json` examples
### Linux kernel