Skip to content

Conversation

@tagunil
Copy link
Contributor

@tagunil tagunil commented Aug 17, 2025

Provide toolchain-specific implementations for the new functions added in d77b58a, because the default ones end up with build failures.

As the MWDT toolchain doesn't support different combinations of compilers and linkers, there's no need to pass any linker properties from the compiler, at least for the time being. Moreover, the default implementation of compiler_set_linker_properties() uses the compiler flag (--print-libgcc-file-name) that doesn't make any sense for MWDT. Therefore, provide an empty implementation of the function.

The default implementation of toolchain_linker_add_compiler_options() doesn't cause any issues for now, but it's still better to replace it with the passthrough implementation borrowed from ld/lld.

Fixes the build time failures introduced by #94359.

Provide toolchain-specific implementations for the new functions
added in d77b58a, because the default ones end up with build failures.

As the MWDT toolchain doesn't support different combinations of
compilers and linkers, there's no need to pass any linker properties
from the compiler, at least for the time being. Moreover, the default
implementation of compiler_set_linker_properties() uses the compiler
flag (--print-libgcc-file-name) that doesn't make any sense for MWDT.
Therefore, provide an empty implementation of the function.

The default implementation of toolchain_linker_add_compiler_options()
doesn't cause any issues for now, but it's still better to replace
it with the passthrough implementation borrowed from ld/lld.

Signed-off-by: Ilya Tagunov <[email protected]>
@sonarqubecloud
Copy link

Copy link
Contributor

@keith-packard keith-packard left a comment

Choose a reason for hiding this comment

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

These look good. The other linkers need help in multilib configurations as they can support non-default C libraries, so you shouldn't need the rt_library or lib_include_dir linker properties

@tagunil
Copy link
Contributor Author

tagunil commented Aug 25, 2025

Hi @tejlmand, could you please review this one? It's not possible to build Zephyr with MWDT toolchain right now because of the breakage this PR should fix.

@kartben kartben merged commit 09a034e into zephyrproject-rtos:main Sep 1, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Build System area: Toolchains Toolchains Regression Something, which was working, does not anymore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

toolchain: arcmwdt: compiler_set_linker_properties breaks causing build failure

6 participants