Conversation
…ig files Adds custom libc++, libc++abi, and libunwind test configurations to select LLD for C++ tests, replacing the invasive approach of overwriting Clang’s global configuration files.
pawosm-arm
left a comment
There was a problem hiding this comment.
This is a great approach, but I need to ask two questions first:
- how this will behave when facing any upstream changes to the related CMake files?
- would this approach be also feasible to cover the problem with CMake runtimes not being able to find runtimes built in a previous stage? see: #1047
I had been thinking about the same issue the couple of days as well. But that would need out ATfL builds to be CMake based instead of the bash-script based approach.
I'll try to reproduce the problem first and have a think. |
I had similar dilemma while introducing the bolt-related cmake files. Eventually I decided not to create new ones, but instead copy existing, piggyback new or overriding flags of them, and use ... |
|
I thought about this a bit more. All our builds except for RHEL-8 pass without this -fuse-ld=lld workaround. So looking at the reason for that, the root cause is due to RHEL-8 having GLIBC < 2.34 https://lwn.net/Articles/864920/
However application linking with GLIBC older than that should pass |
Yeah, this should have been done like that from the start. Thanks for addressing it properly. |
Adds custom libc++, libc++abi, and libunwind test configurations to select LLD for C++ tests, replacing the invasive approach of overwriting Clang’s global configuration files.