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
|
# default action: build all
|
||||||
all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin
|
all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin
|
||||||
|
echo $(CFLAGS) | sed -E 's/ /\n/g' > compile_flags.txt
|
||||||
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
|
|||||||
20
compile_flags.txt
Normal file
20
compile_flags.txt
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
-mcpu=cortex-m0plus
|
||||||
|
-mthumb
|
||||||
|
-DUSE_HAL_DRIVER
|
||||||
|
-DSTM32G0B1xx
|
||||||
|
-IInc
|
||||||
|
-IDrivers/STM32G0xx_HAL_Driver/Inc
|
||||||
|
-IDrivers/STM32G0xx_HAL_Driver/Inc/Legacy
|
||||||
|
-IDrivers/CMSIS/Device/ST/STM32G0xx/Include
|
||||||
|
-IDrivers/CMSIS/Include
|
||||||
|
-IDrivers/RTT/Config
|
||||||
|
-IDrivers/RTT/RTT
|
||||||
|
-Og
|
||||||
|
-Wall
|
||||||
|
-fdata-sections
|
||||||
|
-ffunction-sections
|
||||||
|
-g
|
||||||
|
-gdwarf-2
|
||||||
|
-MMD
|
||||||
|
-MP
|
||||||
|
-MFall
|
||||||
Reference in New Issue
Block a user