From fe7fd446bcbb4742d62cd85de7deed5d3e48c685 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 16 Jul 2025 19:02:16 +0200 Subject: [PATCH] Newlib correct path to please clangd --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index e44caea..9ca48ad 100644 --- a/Makefile +++ b/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