From e52f0954cd0530197a6eb52ee0d8c9bf4d58eeb1 Mon Sep 17 00:00:00 2001 From: Proddy Date: Mon, 3 Jul 2023 11:43:50 +0200 Subject: [PATCH] fix build standalone --- Makefile | 2 +- platformio.ini | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index a08d2be7b..d4dd85b3e 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ CXX_STANDARD := -std=c++11 #---------------------------------------------------------------------- # Defined Symbols #---------------------------------------------------------------------- -DEFINES += -DARDUINOJSON_ENABLE_STD_STRING=1 -DARDUINOJSON_ENABLE_PROGMEM=1 -DARDUINOJSON_ENABLE_ARDUINO_STRING -DARDUINOJSON_USE_DOUBLE=0 +DEFINES += -DARDUINOJSON_ENABLE_STD_STRING=1 -DARDUINOJSON_ENABLE_PROGMEM=1 -DARDUINOJSON_ENABLE_ARDUINO_STRING -DARDUINOJSON_USE_DOUBLE=0 -DARDUINO DEFINES += -DEMSESP_DEBUG -DEMSESP_STANDALONE -DEMSESP_TEST DEFINES += $(ARGS) diff --git a/platformio.ini b/platformio.ini index 27eea1101..dccd71b4c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -166,9 +166,7 @@ build_unflags = ${common.unbuild_flags} board_upload.use_1200bps_touch = false board_upload.wait_for_upload_port = false -; see https://docs.platformio.org/en/latest/platforms/native.html#id1 -; to build: pio run -e standalone -; to run and build: pio run -e standalone -t exec +; to build and run: pio run -e standalone -t exec [env:standalone] platform = native build_flags = @@ -177,7 +175,7 @@ build_flags = -DEMSESP_DEBUG -DEMSESP_STANDALONE -DEMSESP_TEST -DEMSESP_DEFAULT_LOCALE=\"en\" -DEMSESP_DEFAULT_TX_MODE=8 -DEMSESP_DEFAULT_VERSION=\"3.6.0-dev\" -DEMSESP_DEFAULT_BOARD_PROFILE=\"S32\" -lpthread - -std=gnu++17 -Og -ggdb + -std=gnu++11 -Og -ggdb build_src_flags = -Wall -Wextra -Werror -Wswitch-enum -Wno-unused-parameter -Wno-inconsistent-missing-override -Wno-unused-lambda-capture -I./lib_standalone