Newlib correct path to please clangd

This commit is contained in:
Imbus 2025-07-16 19:02:16 +02:00
parent 28d7841a8c
commit fe7fd446bc

View file

@ -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