From c194b0f6ecd517bab49362881b781838ecdfdf49 Mon Sep 17 00:00:00 2001 From: David Gauchard Date: Wed, 17 Apr 2019 14:54:14 +0200 Subject: [PATCH 1/2] mock on host: compile without rtti (no dynamic_cast<>(), like on native) --- tests/host/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/host/Makefile b/tests/host/Makefile index b78483bb39..8282046455 100644 --- a/tests/host/Makefile +++ b/tests/host/Makefile @@ -139,7 +139,7 @@ DEBUG += -DDEBUG_ESP_PORT=Serial DEBUG += -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_ESP_MDNS endif -FLAGS += $(DEBUG) -Wall -coverage $(OPTZ) -fno-common -g $(M32) +FLAGS += $(DEBUG) -Wall -coverage $(OPTZ) -fno-common -g $(M32) -fno-rtti FLAGS += -DHTTPCLIENT_1_1_COMPATIBLE=0 FLAGS += -DLWIP_IPV6=0 FLAGS += -DHOST_MOCK=1 From 9c5323cec05c5b34a5c5526584ade70c2a61b0d0 Mon Sep 17 00:00:00 2001 From: David Gauchard Date: Wed, 17 Apr 2019 15:46:16 +0200 Subject: [PATCH 2/2] fix gcc option --- tests/host/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/host/Makefile b/tests/host/Makefile index 8282046455..df5393f07c 100644 --- a/tests/host/Makefile +++ b/tests/host/Makefile @@ -139,13 +139,13 @@ DEBUG += -DDEBUG_ESP_PORT=Serial DEBUG += -DDEBUG_ESP_SSL -DDEBUG_ESP_TLS_MEM -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_CORE -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_ESP_MDNS endif -FLAGS += $(DEBUG) -Wall -coverage $(OPTZ) -fno-common -g $(M32) -fno-rtti +FLAGS += $(DEBUG) -Wall -coverage $(OPTZ) -fno-common -g $(M32) FLAGS += -DHTTPCLIENT_1_1_COMPATIBLE=0 FLAGS += -DLWIP_IPV6=0 FLAGS += -DHOST_MOCK=1 FLAGS += -DNONOSDK221=1 FLAGS += $(MKFLAGS) -CXXFLAGS += -std=c++11 $(FLAGS) +CXXFLAGS += -std=c++11 -fno-rtti $(FLAGS) CFLAGS += -std=c99 $(FLAGS) LDFLAGS += -coverage $(OPTZ) -g $(M32) VALGRINDFLAGS += --leak-check=full --track-origins=yes --error-limit=no --show-leak-kinds=all --error-exitcode=999