From 979bbfea728caf88bf1376b63a736e52767bff24 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Sun, 15 Nov 2020 03:38:32 +0300 Subject: [PATCH] Use -std=gnu17 instead of -std=c17 for GCC and test (#7588) --- platform.txt | 2 +- tools/platformio-build.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform.txt b/platform.txt index c68d1985f..5e2c9be54 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/tools/platformio-build.py b/tools/platformio-build.py index 1af8ff9a3..9dfc9277d 100644 --- a/tools/platformio-build.py +++ b/tools/platformio-build.py @@ -54,7 +54,7 @@ env.Append( ASFLAGS=["-x", "assembler-with-cpp"], CFLAGS=[ - "-std=c17", + "-std=gnu17", "-Wpointer-arith", "-Wno-implicit-function-declaration", "-Wl,-EL",