Skip to content

Commit 1e14953

Browse files
soburidkalowsk
authored andcommitted
Revert "modules: hal_rpi_pico: set -std=gnu11 in a toolchain independent way."
This reverts commit 05401b3. Introducing c-std setting with CMake way in the commit, but the actual command line is below. ``` arm-zephyr-eabi-gcc -DKERNEL ... -std=gnu11 ... -std=c99 ... ``` The setting `CONFIG_STD_C99` in Kconfig appends the `-std=c99`, and (At least in gcc,) options are processed last-come-first, so this setting was meaningless. This will cause a build error, so we will revert it. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 1d91c4a commit 1e14953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hal_rpi_pico/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include(ExternalProject)
44

55
if(CONFIG_HAS_RPI_PICO)
66
zephyr_library()
7-
set_property(TARGET ${ZEPHYR_CURRENT_LIBRARY} PROPERTY C_STANDARD 11)
7+
zephyr_library_compile_options(-std=gnu11)
88

99
set(rp2_common_dir ${ZEPHYR_HAL_RPI_PICO_MODULE_DIR}/src/rp2_common)
1010
set(rp2xxx_dir ${ZEPHYR_HAL_RPI_PICO_MODULE_DIR}/src/${CONFIG_SOC_SERIES})

0 commit comments

Comments
 (0)