Skip to content
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

toolchain: Move extra warning options to toolchain abstraction #53305

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

kokas-a
Copy link

@kokas-a kokas-a commented Dec 22, 2022

Move extra warning option from generic twister script into compiler-dependent config files.
ARCMWDT compiler doesn't support extra warning options ex. "-Wl,--fatal-warnings". To avoid build fails flag
"disable_warnings_as_errors" should be passed to twister. This allows all warning messages and make atomatic test useles.

Signed-off-by: Nikolay Agishev [email protected]

@kokas-a
Copy link
Author

kokas-a commented Dec 22, 2022

@evgeniy-paltsev, could you please send your feedback?

@kokas-a kokas-a force-pushed the arc_mwdt_warnings branch 2 times, most recently from 36fdebf to add47ff Compare December 23, 2022 10:47
cmake/compiler/arcmwdt/generic.cmake Outdated Show resolved Hide resolved
cmake/compiler/compiler_flags_template.cmake Outdated Show resolved Hide resolved
cmake/compiler/gcc/compiler_flags.cmake Outdated Show resolved Hide resolved
@kokas-a kokas-a force-pushed the arc_mwdt_warnings branch 2 times, most recently from dc91184 to 5cc8144 Compare December 26, 2022 19:31
Copy link
Collaborator

@evgeniy-paltsev evgeniy-paltsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this PR we provide flags only for GCC and ARCMWDT toolchain, but currently the flags values are selected for all toolchains.

So we need pt provide these default flags for all Zephyr supported toolchains (xcc, clang, etc...) to keep existing behavior for them.

cmake/compiler/arcmwdt/compiler_flags.cmake Outdated Show resolved Hide resolved
@evgeniy-paltsev evgeniy-paltsev changed the title compiler: Move extra warning options to separate files toolchain: Move extra warning options to toolchain abstraction Dec 28, 2022
@kokas-a kokas-a marked this pull request as ready for review December 28, 2022 21:47
@stephanosio
Copy link
Member

@tejlmand Can you please take a look?

@evgeniy-paltsev evgeniy-paltsev self-requested a review January 26, 2023 19:23
@kokas-a
Copy link
Author

kokas-a commented Feb 3, 2023

@tejlmand Could you please give your feedback to this PR?

@stephanosio stephanosio modified the milestones: v3.3.0, v3.4.0 Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done in 3.4
Development

Successfully merging this pull request may close these issues.

8 participants