-
Notifications
You must be signed in to change notification settings - Fork 6.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
[libvpx] switch from yasm to nasm #14545
Conversation
Looks like the x64_osx test is failing due to nasm not being installed on the test system. Not sure how to fix this. For the record, my own osx build with this patch is passing (with nasm installed): https://travis-ci.org/github/mcmtroffaes/ffmpeg-msvc-build/jobs/743162386 |
I've tried to fix it in f65ad1b to no avail. Could someone with a better understanding of how azure works with vcpkg suggest how to fix the regression test so osx gets nasm installed? |
|
Thanks @JackBoosY ! |
I will handle this regression on next week. |
@BillyONeal Please add |
Just resolved a conflict against master. @longnguyen2004 Could you check if the mingw build of libvpx still works with this patch? I noticed you exported the yasm path to ENV{AS} to fix the mingw build of libvpx. I cannot easily test here locally if something similar is also necessary for nasm under mingw. |
@mcmtroffaes Alright I'll check |
Yes the ENV{AS} export is still required for mingw, not sure about MSVC. Can you give me write access so I can commit directly to your fork? |
Many thanks for looking into it, @longnguyen2004! I'm not sure how to set up write access specifically for you (it seems only official maintainers can do that), but I think it's possible to make a suggested change via the github review functionality, which I can then directly apply via the github interface. See https://haacked.com/archive/2019/06/03/suggested-changes/ Does that work? |
|
Also GitHub Review doesn't seem to work outside your diff. You can invite me as a collaborator to give me write access. |
Alas, too bad it doesn't work via github review. I think I've sent you an invite now. |
|
@mcmtroffaes I'm wondering if the lack of DWARF debug info for Windows would be a problem for mingw toolchain, since that's the standard debug format there. But since libvpx also defaults to CodeView for mingw toolchain, I'm gonna keep it that way, |
Looking good! |
Excellent. Many thanks @longnguyen2004 for helping out with this! Looks like we got some new regressions but seems unrelated to this patch (hash error on vtk-m). |
@mcmtroffaes You're welcome! Now we just need to wait for VM update on |
…ure/libvpx-nasm
LGTM. @BillyONeal Do you have any other questions? |
Thanks for the PR! |
What does your PR fix? Since upstream supports nasm, this patch switches libvpx from yasm to nasm, as nasm is better maintained. It also avoids issues with the use of the yasm helper on 64 bit systems (see for instance [libvpx[core]:x64-windows] build failure #14511). Minor patch is needed to ensure the libvpx msbuild system works with nasm. Has been tested through a custom ffmpeg build against a nasm build of libvpx, and both vp8 and vp9 work as expected, producing identical files as the yasm build, and at the same speed.
Which triplets are supported/not supported? Have you updated the CI baseline? No changes.
Does your PR follow the maintainer guide? To the best of my knowledge, yes.