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

cmake: lld: Remove duplicate -fuse-ld=lld #80588

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

jonathonpenix
Copy link
Contributor

-fuse-ld=lld is currently specified twice through the baremetal property (in cmake/linker/lld/linker_flags.cmake) and TOOLCHAIN_LD_FLAGS (in cmake/linker/lld/target.cmake). This doesn't really harm anything as it isn't duplicated on the link line (and specifying it multiple times wouldn't hurt even if it was), but it also doesn't really help anything.

-fuse-ld isn't baremetal-specific and setting it via TOOLCHAIN_LD_FLAGS will cover this case anyway, so remove this duplicate.

-fuse-ld=lld is currently specified twice through the baremetal property
(in cmake/linker/lld/linker_flags.cmake) and TOOLCHAIN_LD_FLAGS (in
cmake/linker/lld/target.cmake). This doesn't really harm anything as
it isn't duplicated on the link line (and specifying it multiple times
wouldn't hurt even if it was), but it also doesn't really help anything.

-fuse-ld isn't baremetal-specific and setting it via TOOLCHAIN_LD_FLAGS
will cover this case anyway, so remove this duplicate.

Signed-off-by: Jonathon Penix <[email protected]>
@dkalowsk
Copy link
Contributor

@tejlmand should this be part of 4.0?

@tejlmand
Copy link
Collaborator

@tejlmand should this be part of 4.0?

It's not critical, but nice cleanup.
Feel free to include, but i'm not sure how strict we are with release and minor cleanup like this.

@mmahadevan108 mmahadevan108 added this to the v4.1.0 milestone Nov 1, 2024
@nashif nashif merged commit 2493123 into zephyrproject-rtos:main Nov 16, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants