mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
Project Setup: add IAR Embedded Workbench for Arm
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'`.
|
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
|
## `compile_commands.json` examples
|
||||||
|
|
||||||
### Linux kernel
|
### Linux kernel
|
||||||
|
Loading…
Reference in New Issue
Block a user