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

Test #3848 + #3850 #3858

Closed
wants to merge 10 commits into from
Closed

Test #3848 + #3850 #3858

wants to merge 10 commits into from

Conversation

kinke
Copy link
Member

@kinke kinke commented Oct 23, 2021

No description provided.

Instead, use the object file generated by compiling shared druntime
directly. By using the `@hidden` UDA in that module,
`-fvisibility=public` isn't a problem anymore.

We also end up with a 32-bit `ldc_rt.dso.o` for MULTILIB=ON this way.
This should help on Windows if those tools aren't available/in PATH.
Mainly, avoid running the MSan lit-tests with shared default libs,
which apparently regressed with the rt.dso introduction with older
LLVM/MSan versions - for GH Actions, at least with LLVM v8 and v9;
v11 and v12 do work.
I hope the issues with old bfd aren't really a thing anymore.

The main reason is that the user might have set LLD as default
`/usr/bin/ld` symlink, and LDC not using it by default isn't
intuitive. And LLD can be significantly faster than gold.
bfd cannot be used for linking the final compiler with LTO, it
rejects bitcode .a libs.
As bfd doesn't support lib{druntime,phobos}-ldc-lto.a libs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant