Merge pull request #644 from ipopov/master

Set -DCMAKE_BUILD_TYPE=Debug when building in debug for rp2040.
This commit is contained in:
Ha Thach 2021-02-10 21:52:28 +07:00 committed by GitHub
commit ba11bb2b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,10 @@ $(BUILD)/$(PROJECT).uf2: $(BUILD)/$(PROJECT).bin
else ifeq ($(FAMILY),rp2040)
ifeq ($(DEBUG), 1)
CMAKE_DEFSYM += -DCMAKE_BUILD_TYPE=Debug
endif
$(BUILD):
cmake -S . -B $(BUILD) -DFAMILY=$(FAMILY) -DBOARD=$(BOARD) -DPICO_BUILD_DOCS=0 $(CMAKE_DEFSYM)