I've hit a road block in my resolution of SR-1023 [1].
I have a "working" patch in so far as I can now apply my patches to
master and resume compiling. I think my patch for the CMake changes is
largely acceptable (based on feedback of the associated PR [2]).
However, my patch for the driver has not been submitted for review yet
due to the immature nature of the patch. Basically what I did to the
driver is always send some flags to the linker; you can see the actual
patch in the comments of SR-1023 [3].
Ideally these flags should only be sent to the driver if the linker
supports the flags. Does anyone have a suggestion on how such a
conditional should be built?
[1] [SR-1023] Build Error: Relocation R_X86_64_PC32 · Issue #43635 · apple/swift · GitHub
[2] [cmake] Work around relocation R_X86_64_PC32 link error by RLovelett · Pull Request #2012 · apple/swift · GitHub
[3]
[SR-1023] Build Error: Relocation R_X86_64_PC32 · Issue #43635 · apple/swift · GitHub