Skip to content
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

DRAFT: Support LLVM/Clang crossdev #32136

Closed
wants to merge 5 commits into from

Conversation

alfredfo
Copy link
Contributor

@alfredfo alfredfo commented Aug 1, 2023

This is a draft PR, and I expect comments before merging.

See: gentoo/crossdev#10
Thanks wikky and vimproved for help!

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @alfredfo
Areas affected: ebuilds, eclasses
Packages affected: sys-libs/compiler-rt, sys-libs/musl

sys-libs/compiler-rt: @gentoo/llvm
sys-libs/musl: @blueness, @lu-zero, @gentoo/toolchain, @gentoo/musl

Linked bugs

No bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment.

If you do not receive any reply to this pull request, please open or link a bug to attract the attention of maintainers.


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. labels Aug 1, 2023
Copy link
Member

@thesamesam thesamesam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you send this to the gentoo-dev ML please with git send-email given it's a new eclass? Thanks.

CC me, llvm@, and toolchain@.

sys-libs/compiler-rt/compiler-rt-17.0.0.9999.ebuild Outdated Show resolved Hide resolved
sys-libs/compiler-rt/compiler-rt-17.0.0.9999.ebuild Outdated Show resolved Hide resolved
@alfredfo alfredfo force-pushed the gentoo-llvmcross branch 4 times, most recently from 5678194 to 6bb2c24 Compare August 9, 2023 23:47
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-08-10 00:05 UTC
Newest commit scanned: 6bb2c24
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/832c6fc361/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-08-10 01:50 UTC
Newest commit scanned: c93cf76
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/4f9949b4f4/output.html

eclass/cross.eclass Outdated Show resolved Hide resolved
eclass/cross.eclass Outdated Show resolved Hide resolved
eclass/cross.eclass Outdated Show resolved Hide resolved
eclass/cross.eclass Outdated Show resolved Hide resolved
@alfredfo alfredfo force-pushed the gentoo-llvmcross branch 3 times, most recently from 2df5dd2 to 1d99d4b Compare August 17, 2023 03:31
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-08-17 03:45 UTC
Newest commit scanned: 1d99d4b
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/9bfd172cbe/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-08-17 21:50 UTC
Newest commit scanned: e512639
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/11413117ed/output.html

@alfredfo alfredfo force-pushed the gentoo-llvmcross branch 6 times, most recently from 4dab493 to 568a24b Compare August 21, 2023 22:49
@alfredfo alfredfo force-pushed the gentoo-llvmcross branch 2 times, most recently from 269dc98 to 4a9fe3c Compare August 22, 2023 10:29
@alfredfo alfredfo force-pushed the gentoo-llvmcross branch 7 times, most recently from c6d89a6 to ce0ad56 Compare August 22, 2023 16:37
This eclass includes convenience wrappers for use in ebuilds used by the
Crossdev tool. Mostly to avoid duplicating code for checking category
and setting CTARGET in ebuilds.

Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
@alfredfo alfredfo force-pushed the gentoo-llvmcross branch 2 times, most recently from cb01e49 to fe28f32 Compare August 22, 2023 17:52
This replaces inline code with functions from crossdev.eclass. Now also
supports LLVM/Clang crossdev because the eclass handles that
automatically.

Thanks wikky for help!

Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
Use crossdev.eclass instead of manually parsing category. This makes it
automatically support LLVM/Clang crossdev.

Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
This adds functionality to cross compile compiler-rt for a target
architecture. Needed for LLVM/Clang crossdev.

Thanks wikky for help!

Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
Creates wrappers and symlinks for clang, clang++, and clang-cpp so that
llvm.org's fix version function is happy with ${CTARGET}-clang

Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-08-22 18:05 UTC
Newest commit scanned: 87b2dbc
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/7d74a39983/output.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits.
Projects
None yet
7 participants