experimental llvm-mingw support for dxvk? #2185
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
spam
wontfix
No Milestone
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tastytea/overlay#2185
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hey there,
I just learned of a project called llvm-mingw, which bootstraps a mingw compiler with llvm/clang/lld as its toolchain.
Its hosted at https://github.com/mstorsjo/llvm-mingw ; right now it needs a small patch from this issue https://github.com/mstorsjo/llvm-mingw/issues/277 to compile.
Do you think its possible to bend the dxvk config files a bit to accept CC=x86_64-w64-mingw32-clang?
I tried to patch build-win64.txt with the correct compiler values, to no avail.
My ebuild checks if the toolchain is correctly installed in pkg_pretend(). It assumes that crossdev was used to compile it, so it would have to be rewritten to support llvm-mingw. I don't want to support that, because it is complicated enough at it is, but I could add a USE-flag to skip the checks? Or you could copy the ebuild to your local overlay and remove pkg_pretend().
So I will have to remove the entire src_prepare section to skip the compiler checks, and also patch build-win-64.txt, as per line 121 its the source of the meson cross file, right?
I've added the USE-flag
skip-toolchain-check
now, which skips the checks. So you only have to patch build-win-64.txt (and build-win-32.txt if you use 32 bit) in /etc/portage/patches.yes, that looks promising:
I haven't yet installed the mingw32-clang properly, so its an expected fail.
By the way, your custom patch may need a litte update?
Thanks, I'll fix it in the next version.
app-emulation/dxvk is in the main repo now and masked for removal here.
thanks for the bumby ride with this :-)
do you think theres anything from your ebuilds worth to upstream towards the gentoo tree?
It seems like it does everything my ebuilds did. There's even a
MINGW_BYPASS
variable you can override to use llvm-mingw: https://cgit.gentoo.org/repo/gentoo.git/tree/app-emulation/dxvk/dxvk-1.10.2.ebuild#n35.