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

Babysit meson so it doesn't do the wrong thing #352

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

gbaraldi
Copy link
Contributor

Meson tries really hard to do it wrong.
Also note for the future -fuse-ld behaves very differently between gcc and clang. GCC only wants a linker name, while clang understands a full path and one with platform specific handling. Also gcc calls it bfd while clang wants ld

@gbaraldi gbaraldi requested a review from giordano November 10, 2023 11:49
Comment on lines +200 to +202
ld = '$(linker_string(bt, p, clang_use_lld))'
cpp_ld = '$(linker_string(bt, p, clang_use_lld))'
c_ld = '$(linker_string(bt, p, clang_use_lld))'
Copy link
Member

Choose a reason for hiding this comment

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

I thought here you needed the basename of the linker?

Copy link
Contributor Author

@gbaraldi gbaraldi Nov 10, 2023

Choose a reason for hiding this comment

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

It's not even basename. GCC wants an actual name like "bfd" or "lld". While clang understands a full path. So this dispatches on the compiler now

@giordano giordano merged commit 128480c into master Nov 10, 2023
6 checks passed
@giordano giordano deleted the gb/baby-meson-doo-doo-doo branch November 10, 2023 12:25
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.

2 participants