Skip to content

Instantly share code, notes, and snippets.

@JayKickliter
Created July 31, 2020 16:57
Show Gist options
  • Save JayKickliter/682325d3000e19f5937e5999b25c9015 to your computer and use it in GitHub Desktop.
Save JayKickliter/682325d3000e19f5937e5999b25c9015 to your computer and use it in GitHub Desktop.
ccls file for arm cortex-m4 project
%compile_commands.json
--target=armv7m-none-eabi
--sysroot=/Users/jay/.local/gcc-arm-none-eabi-9-2019-q4-major/bin/../arm-none-eabi
-isystem/Users/jay/.local/gcc-arm-none-eabi-9-2019-q4-major/bin/../arm-none-eabi/include/c++/9.2.1
-isystem/Users/jay/.local/gcc-arm-none-eabi-9-2019-q4-major/arm-none-eabi/include/c++/9.2.1/arm-none-eabi/thumb/v7-m/nofp
-mfpu=none
@JayKickliter
Copy link
Author

JayKickliter commented Jul 31, 2020

Even though the project is using hard-FP, clang chokes on it, so let's disable it since we're mainly using ccls for higher-level analysis.

@JayKickliter
Copy link
Author

This gist is an example only of how I got ccls to work with an Arm Cortex-M3 microcontroller target build with gcc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment