init
This commit is contained in:
16
README.md
Normal file
16
README.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# fixbear.sh
|
||||||
|
|
||||||
|
Run this after running `bear -- make` in your STM project repository.
|
||||||
|
|
||||||
|
Or run it manually:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sed -i '/-ICore/i \ \ \ \ \ \ "-I/usr/include",' compile_commands.json
|
||||||
|
```
|
||||||
|
|
||||||
|
This adds `-I/usr/include` to compiler arguments for your IDE's linter.
|
||||||
|
You don't need this unless you're using stuff like `printf()` in your code.
|
||||||
|
|
||||||
|
Adding `/usr/include` to the include path in `Makefile` breaks the actual
|
||||||
|
project. This change to `compile_commands.json` is just so your editor
|
||||||
|
doesn't feak out.
|
||||||
2
fixbear.sh
Normal file
2
fixbear.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
sed -i '/-ICore/i \ \ \ \ \ \ "-I/usr/include",' compile_commands.json
|
||||||
Reference in New Issue
Block a user