Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Clang cross toolchain #106

Closed
xsacha opened this issue Nov 1, 2016 · 9 comments
Closed

Clang cross toolchain #106

xsacha opened this issue Nov 1, 2016 · 9 comments

Comments

@xsacha
Copy link

xsacha commented Nov 1, 2016

Since you can cross compile just about anything with a host clang, why not add a toolchain for this?

@ruslo
Copy link
Owner

ruslo commented Nov 1, 2016

Not sure I understand the question. There are already libcxx and clang-libstdcxx toolchains.

you can cross compile

What kind of cross-compiling we are talking about?

@xsacha
Copy link
Author

xsacha commented Nov 1, 2016

I would like something similar to compiler/gcc-cross-compiler.cmake but for clang. Just setting a variable for sysroot, etc. It just seems strange there's no toolchain for clang cross compiling.

@ruslo
Copy link
Owner

ruslo commented Nov 1, 2016

It just seems strange there's no toolchain for clang cross compiling

Looks like nobody using/need it, see nothing strange about it :)

I would like something similar to compiler/gcc-cross-compiler.cmake but for clang. Just setting a variable for sysroot, etc.

Feel free to add one.

@headupinclouds
Copy link
Contributor

I was previously interested in building shared libraries for Linux distributions from an OS X host (Apple HW being required for iOS). I'm not sure if that is possible. @xsacha Do you have any thoughts? Here are some high level cross compilation pages I found for reference:

http://clang.llvm.org/docs/CrossCompilation.html
http://llvm.org/docs/HowToCrossCompileLLVM.html

@ruslo
Copy link
Owner

ruslo commented Nov 6, 2016

I'm not sure if that is possible

I think I post the question on stackoverflow but looks like I delete it because of no response and no interest in further investigation.

@headupinclouds
Copy link
Contributor

Related: #27

@keithdunnett
Copy link

@xsacha I'm thinking aloud here, not done it yet, but libfloor has a good assortment of clang-based cross compilers (pitched mostly at GPGPU computing, but it should be possible to add other targets).

New to polly so not sure yet how much work it will (or won't) be to use polly to manage a load of third-party toolchains, it's more musing aloud than clear suggestion at this time, but on the face of it, sounds like what you want could leverage existing work rather than configure it all from scratch.

@headupinclouds
Copy link
Contributor

@Magick777 : 👍 Thanks for the libfloor reference. (I suppose this is slightly off topic for the original post, but I have been looking for something exactly like this.)

@ruslo
Copy link
Owner

ruslo commented Jan 7, 2018

Closing inactive discussion.

@ruslo ruslo closed this as completed Jan 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants