mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/esp32: Evaluate cpp FEATURE with conditional expansion
This commit is contained in:
parent
05c37edd42
commit
2f158d7d19
@ -9,7 +9,6 @@ USEMODULE += pm_layered
|
||||
|
||||
ifneq (,$(filter cpp,$(FEATURES_USED)))
|
||||
USEMODULE += pthread
|
||||
BASELIBS += -lstdc++
|
||||
USEMODULE += esp_cxx
|
||||
endif
|
||||
|
||||
|
@ -68,10 +68,9 @@ LINKFLAGS += -T$(RIOTCPU)/$(CPU)/ld/esp32.rom.ld
|
||||
LINKFLAGS += -T$(RIOTCPU)/$(CPU)/ld/esp32.rom.nanofmt.ld
|
||||
LINKFLAGS += -nostdlib -lgcc -Wl,-gc-sections
|
||||
|
||||
|
||||
ifneq (,$(filter cpp,$(FEATURES_USED)))
|
||||
UNDEF += $(BINDIR)/esp_cxx/cxa_guard.o
|
||||
endif
|
||||
# NOTE: This check can be turned into a normal conditional after #9913 is fixed
|
||||
UNDEF += $(if $(filter cpp,$(FEATURES_USED)),$(BINDIR)/esp_cxx/cxa_guard.o)
|
||||
BASELIBS += $(if $(filter cpp,$(FEATURES_USED)),-lstdc++)
|
||||
|
||||
# additional flasher configuration for ESP32 QEMU
|
||||
ifneq (,$(filter esp_qemu,$(USEMODULE)))
|
||||
|
Loading…
Reference in New Issue
Block a user