Newlib correct path to please clangd
This commit is contained in:
parent
28d7841a8c
commit
fe7fd446bc
1 changed files with 8 additions and 0 deletions
8
Makefile
8
Makefile
|
@ -1,6 +1,14 @@
|
|||
PROJECT := main
|
||||
BUILD_DIR := bin
|
||||
|
||||
ifneq ($(wildcard /etc/fedora-release),)
|
||||
NEWLIB?=/usr/arm-none-eabi/include
|
||||
else
|
||||
NEWLIB?=/usr/include/newlib
|
||||
endif
|
||||
|
||||
CFLAGS += -I$(NEWLIB)
|
||||
|
||||
# CFILES := main.c system.c
|
||||
CFILES += $(wildcard *.c)
|
||||
OPENCM3_DIR := ./libopencm3
|
||||
|
|
Loading…
Add table
Reference in a new issue