Skip to content

mingw-w64-cross-compiler-rt and -clang i686#2278

Merged
lazka merged 2 commits into
msys2:masterfrom
jeremyd2019:cross-clang-i686
Dec 25, 2020
Merged

mingw-w64-cross-compiler-rt and -clang i686#2278
lazka merged 2 commits into
msys2:masterfrom
jeremyd2019:cross-clang-i686

Conversation

@jeremyd2019

Copy link
Copy Markdown
Member

Simple loop to build both x86_64 and i686 target libraries, as is done in -crt. I have not actually looked at the resulting binaries.

@mati865

mati865 commented Dec 22, 2020

Copy link
Copy Markdown
Collaborator

The problem with i686 is we cannot use 32bit LLD to link big packages (like LLVM) : https://bugs.llvm.org/show_bug.cgi?id=42388#c6

@jeremyd2019

Copy link
Copy Markdown
Member Author

The problem with i686 is we cannot use 32bit LLD to link big packages (like LLVM)

☹️

Does this PR look OK though?

@mati865

mati865 commented Dec 23, 2020

Copy link
Copy Markdown
Collaborator

Yeah, PR itself looks fine.

@jeremyd2019
jeremyd2019 marked this pull request as ready for review December 23, 2020 19:33
@jeremyd2019

Copy link
Copy Markdown
Member Author

I built this locally on my i686 machine last night, and built a quick test c++ program with it just now that succeeded and ran properly.

@lazka

lazka commented Dec 25, 2020

Copy link
Copy Markdown
Member

It doesn't complicate things too much so seems fine I guess, even if it doesn't work in the long run.

@mati865 ok to merge?

@lazka
lazka merged commit eb30bc5 into msys2:master Dec 25, 2020
@jeremyd2019

Copy link
Copy Markdown
Member Author

I was thinking/hoping that this should make adding arm/aarch64 pretty straightforward too. Though I don't have any such hardware to try it myself.

@jeremyd2019
jeremyd2019 deleted the cross-clang-i686 branch December 26, 2020 00:34
@mati865

mati865 commented Dec 26, 2020

Copy link
Copy Markdown
Collaborator

Does Cygwin work on ARM/Aarch64?

@jeremyd2019

Copy link
Copy Markdown
Member Author

My understanding is that it at least runs under emulation. So it seems to me it could be used to bootstrap a native toolchain. Theoretically. Something interesting for those with the interest and hardware to try, anyway. I think I remember @Biswa96 talking about this at one point.

@mati865

mati865 commented Dec 26, 2020

Copy link
Copy Markdown
Collaborator

I think Cygwin taps too deeply into the system for emulation to work reliably.
Cross compilation will be possible though.

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.

3 participants