-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Revert "modules: hal_rpi_pico: set -std=gnu11 in a toolchain independ… #90896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "modules: hal_rpi_pico: set -std=gnu11 in a toolchain independ… #90896
Conversation
Here, we want to maintain C99 compliance for the Zephyr source, Would you consider fixing this as an individual case for IAR? I have marked this PR as a DNM for now. Please let me know if there are no problems. |
…ent 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 <tokita.hiroshi@gmail.com>
096efb5
to
fd3174e
Compare
|
How unfortunate. However it's not like IAR is currently working on pico and it's currently not our priority to fix so feel free to revert this. If you could make it a generator expression or check CMAKE_C_COMPILER_ID we wouldn't have to fix it again later however. |
Thanks. Once, I'll proceed with the current policy. |
I will also get a chance to test this fix. I know setting Thoughts on adding a warning or error when building pico SDK without GCC? That way, when we're using other toolchains, CMake will let you know at build-time. |
Feel free, but I think it's kind of drastic. pico sdk has had support for other toolchains in the past, but seems to have rotten somewhat. |
This reverts commit 05401b3.
Introducing c-std setting with CMake way in the commit, but the actual command line is below.
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,
https://github.com/zephyrproject-rtos/zephyr/actions/runs/15357763548/job/43220292776?pr=90893
so we will revert it.