add compile_flags (for clangd autocomplte)

This commit is contained in:
2025-04-17 15:00:21 +02:00
parent 55a0442b52
commit 623c2d2f89
2 changed files with 21 additions and 0 deletions

View File

@@ -154,6 +154,7 @@ LDFLAGS = $(MCU) -specs=nano.specs -T$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BU
# default action: build all
all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin
echo $(CFLAGS) | sed -E 's/ /\n/g' > compile_flags.txt
#######################################