-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
mingw-w64-cross-clang: prefixed cross-compiling wrappers for clang #8762
base: master
Are you sure you want to change the base?
Conversation
c403b79
to
6c6a354
Compare
f697209
to
35e58f8
Compare
c7af15d
to
b803395
Compare
b803395
to
9114477
Compare
This seems to be working quite well. I can use this to cross-compile python. The packaging is a bit odd, but it seems to do the job. |
9980c1c
to
eebd51a
Compare
eebd51a
to
a199608
Compare
Wonder how will this work with things like cmake, meson and ninja? Can I use mingw64 cmake with aarch64-w64-mingw32-clang to cross compile ARM64 binaries on x86_64? |
Note I haven't bothered tested the GCC-based MSYSTEMs with this, they should work but who knows... But with clang64, absolutely! All the major build systems have a mechanism to configure them to cross-compile. In fact, I had good luck with cmake not even bothering configuring a toolchain file, and instead just specifying options:
You may not even need to override "compiler works" for normal packages, I was trying to cross-compile libc++ at the time for a prefix lacking it, so the C++ compiler didn't entirely work yet. |
7b79bd9
to
b23897a
Compare
83095c2
to
66c68ce
Compare
1dc144f
to
054fa05
Compare
17b6ca4
to
58d4af4
Compare
58d4af4
to
903ed01
Compare
I set up a github repository with a release to keep binaries of this, and set up a pacman repo for the latest version. The files are in the release https://github.com/msys2-arm/cross-clang/releases/repo. To use, add the following in [cross-clang]
Server = https://github.com/msys2-arm/cross-clang/releases/download/repo
SigLevel = Never |
d51b214
to
1770351
Compare
1770351
to
1618dc5
Compare
1618dc5
to
673aad8
Compare
673aad8
to
fa6e05d
Compare
fa6e05d
to
95acf8c
Compare
95acf8c
to
28c0419
Compare
28c0419
to
884e009
Compare
884e009
to
b63999c
Compare
b63999c
to
1fcd5a4
Compare
1fcd5a4
to
bb93ef8
Compare
bb93ef8
to
29128a2
Compare
29128a2
to
10f58f5
Compare
10f58f5
to
4cbceba
Compare
4cbceba
to
5d3bc2c
Compare
5d3bc2c
to
2ba8e07
Compare
to provide compiler-rt builtins for foreign Windows arches
This allows using clang to target other Windows arches using prefixed cross tools (ie, aarch64-w64-mingw32-clang).
2ba8e07
to
d6397e3
Compare
Related to discussion #8736.
Based on wrappers from llvm-mingw. Also adds a package that provides "foreign" compiler-rt libs.
The clang wrapper could be simplified (have some of the options removed) if the package is only provided for CLANG*. I haven't tested them under MINGW*.