add compile_flags (for clangd autocomplte)
This commit is contained in:
1
Makefile
1
Makefile
@@ -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
|
||||
|
||||
|
||||
#######################################
|
||||
|
||||
Reference in New Issue
Block a user