Skip to content

Commit 979bbfe

Browse files
authored
Use -std=gnu17 instead of -std=c17 for GCC and test (#7588)
1 parent 417aacc commit 979bbfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ compiler.libc.path={runtime.platform.path}/tools/sdk/libc/xtensa-lx106-elf
5555
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"
5656

5757
compiler.c.cmd=xtensa-lx106-elf-gcc
58-
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}
58+
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}
5959

6060
compiler.S.cmd=xtensa-lx106-elf-gcc
6161
compiler.S.flags=-c -g -x assembler-with-cpp -MMD -mlongcalls

tools/platformio-build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def scons_patched_match_splitext(path, suffixes=None):
5454
ASFLAGS=["-x", "assembler-with-cpp"],
5555

5656
CFLAGS=[
57-
"-std=c17",
57+
"-std=gnu17",
5858
"-Wpointer-arith",
5959
"-Wno-implicit-function-declaration",
6060
"-Wl,-EL",

0 commit comments

Comments
 (0)