Repository navigation
Conversation
6 of 7 tasks
Member
|
Merging #327 caused a merge conflict here. |
If git is installed via MSYS2 it is potentially preferred by Get-Command and thus paths returned will be Cygwin-based paths (which the script is not designed to handle) and the patch executable does not exist in the same location relative to git.exe. These changes ensure that the potential checkout path is converted to a Windows-style path before being set as a global variable and also attempts to detect if MSYS2 git is used and thus patch.exe should be present in the same directory as git.exe. NOTE: If only git.exe is installed but not patch.exe, this is now considered a misconfiguration of the build system.
Also fixes issue with nasm 3.0+ producing wrong x86 and x86_64 assembly.
PatTheMav
force-pushed
the
libvpx-nasm-fix
branch
from
November 2, 2026 16:26
9b2d610 to
e7e7f0b
Compare
Member
Author
Resolved and rebased. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Upgrades
libvpxto version 1.17.0 released in August 2026 and applies an official commit as a patch that fixes build issues introduced by the upgrade tonasm3.0+ in MSYS2.Also fixes potential issues with
gitinstalled in MSYS2 on a machine running the build script.Motivation and Context
When
nasm's MSYS2 package was upgraded to 3.0+, builds oflibvpxon Windows were broken due to a bug inlibvpx's assembler source code.This is fixed by commit
251f0168c042861763f73b744f0b3583c70431a2in thelibvpxrepository, which is retained as a patch file for Windows as part of this PR.This PR also fixes issues with
gitinstalled in MSYS2 on a Windows machine:Get-Commandwould provide the path togit.exeinside the MSYS2 installation.git.exewould return paths in their Cygwin "Unix" variant (e.g./c/Program Files/which would then "leak" into the global script variables likeProjectRoot.git.exe, the binary will use paths like/c/c/Program Filesinstead.cygpathis available on the system, it suggests availability of MSYS2.cygpathaccepts Windows-style paths as well as Unix-style paths and returns the desired variant, which can thus be used to ensure a Windows-style path.git.execan be installed individually in MSYS2 andpatch.exeis not provided automatically. If the former is present, the latter needs to be present as well. Git for Windows provides them both (which is the dependency installed automatically by the build script).git.exeandpatch.exeare available via MSYS2, that patching can still succeed.How Has This Been Tested?
libvpxbuilt and linked successfully usingnasm.libvpxbuilt successfully, but the ARM64 target does not usenasm.Types of changes
Checklist: