From 82864cfab027998af3c078c33c26837892d4bacf Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Wed, 9 Sep 2020 16:21:21 +0300 Subject: [PATCH 1/2] test: use -std=c17 instead of -std=gnu17 Same as platform.txt --- tests/host/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/host/Makefile b/tests/host/Makefile index 591a56b1bb..279b2ee507 100644 --- a/tests/host/Makefile +++ b/tests/host/Makefile @@ -23,7 +23,7 @@ endif ifeq ($(CC),gcc) CFLAGS += -std=gnu11 else -CFLAGS += -std=gnu17 +CFLAGS += -std=c17 endif # I wasn't able to build with clang when -coverage flag is enabled, forcing GCC on OS X From c698051a45ac4eb7207ee8c4a0b8228d51ba4e1e Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sun, 15 Nov 2020 03:15:12 +0300 Subject: [PATCH 2/2] c17 -> gnu17 --- platform.txt | 2 +- tests/host/Makefile | 2 +- tools/platformio-build.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform.txt b/platform.txt index c68d1985f1..5e2c9be54b 100644 --- a/platform.txt +++ b/platform.txt @@ -55,7 +55,7 @@ compiler.libc.path={runtime.platform.path}/tools/sdk/libc/xtensa-lx106-elf compiler.cpreprocessor.flags=-D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I{compiler.sdk.path}/include" "-I{compiler.sdk.path}/{build.lwip_include}" "-I{compiler.libc.path}/include" "-I{build.path}/core" compiler.c.cmd=xtensa-lx106-elf-gcc -compiler.c.flags=-c {compiler.warning_flags} -std=c17 {build.stacksmash_flags} -Os -g -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -falign-functions=4 -MMD -ffunction-sections -fdata-sections {build.exception_flags} {build.sslflags} +compiler.c.flags=-c {compiler.warning_flags} -std=gnu17 {build.stacksmash_flags} -Os -g -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -falign-functions=4 -MMD -ffunction-sections -fdata-sections {build.exception_flags} {build.sslflags} compiler.S.cmd=xtensa-lx106-elf-gcc compiler.S.flags=-c -g -x assembler-with-cpp -MMD -mlongcalls diff --git a/tests/host/Makefile b/tests/host/Makefile index 3555187853..410dc3fb01 100644 --- a/tests/host/Makefile +++ b/tests/host/Makefile @@ -23,7 +23,7 @@ endif ifeq ($(CC),gcc) CFLAGS += -std=gnu11 else -CFLAGS += -std=c17 +CFLAGS += -std=gnu17 endif # I wasn't able to build with clang when -coverage flag is enabled, forcing GCC on OS X diff --git a/tools/platformio-build.py b/tools/platformio-build.py index 1af8ff9a3c..9dfc9277d0 100644 --- a/tools/platformio-build.py +++ b/tools/platformio-build.py @@ -54,7 +54,7 @@ def scons_patched_match_splitext(path, suffixes=None): ASFLAGS=["-x", "assembler-with-cpp"], CFLAGS=[ - "-std=c17", + "-std=gnu17", "-Wpointer-arith", "-Wno-implicit-function-declaration", "-Wl,-EL",