-
Notifications
You must be signed in to change notification settings - Fork 52
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
Ebuild changes to use rustbuild and multiple targets #244
Comments
sounds interesting |
Actually, at least the way I'm doing it, LLVM is not used for generating the targets, the toolchains compilers are. For example, the So a direct map from LLVM targets probably is not the best approach since it will not have all the possible alternatives. I'm posting here the main changes I did to the ebuild so it will make the process more clear: First I added new packages to be downloaded on
As you can see, now we download During More important stuff is on
As you can see, the above line will create the config.toml file with information on what compiler to use when the target is After that, the next step is
First I removed There are other changes, but these are the main ones. If you want I can do a PR with the full ebuild already. Maybe the best approach for the targets would be to have something like
Generating This obviously would need |
@cardoe what do you think? |
I'll have a peek |
Has there been any progress on this? I'm interested in support for multiple targets (specifically, x86_64 and aarch64). |
I've made some changes to the rust ebuild to support the newer and recommended
rustbuild
to build it, also, it is possible now to set more targets for therustlibs
(libcore, libstd, etc), so for example, if you have a toolchain fori686-unknown-linux-gnu
, you can tell the ebuild to also buildrustlibs
using that toolchain compiler and install it with the package (so commands likecargo build --target i686-unknown-linux-gnu
will simply work now).This means that we can have a more powerful version of
rustup
inside portage domain.Now, does these changes interest you? I can post then here if so, so we can discuss then better.
Also, one problem that I'm not sure how to solve is the way to tell portage what targets to build when emerging it, for now, just for test, I have it hard-coded to compile for
x86_64-unknown-linux-gnu
andi686-unknown-linux-gnu
, should I create a use target flag for each target, like LLVM ebuild does? Or should the ebuild automatically find all crossdev toolchains installed in the machine and generate the targets for then all?Thanks
The text was updated successfully, but these errors were encountered: