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

try to find patch.exe in git default installation folder #17106

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

fs-eire
Copy link
Contributor

@fs-eire fs-eire commented Aug 11, 2023

Description

updates the build.bat file in root folder to try best efforts to locate patch.exe.

patch.exe is needed to apply patches to some of the dependencies. for example, #17104. However, patch.exe is not available on every windows developer's search path, and if cannot find patch.exe, the build will continue silently. ( as a result, patch is not applied and for patches like #17104, this will cause a build break )

This change adds folder C:\Program Files\Git\usr\bin to the PATH, which is the default git installation directory. This may resolve the patch not found issue for most (hopefully) users.

@fs-eire fs-eire merged commit ebaeda6 into main Aug 11, 2023
@fs-eire fs-eire deleted the fs-eire/win-try-find-patch branch August 11, 2023 04:48
@Red-Eyed
Copy link
Contributor

There is where command in windows (alternative to which in Linux).
So maybe using where is better than hardcoded paths?

jchen351 pushed a commit that referenced this pull request Aug 12, 2023
### Description
updates the build.bat file in root folder to try best efforts to locate
patch.exe.

patch.exe is needed to apply patches to some of the dependencies. for
example, #17104. However, patch.exe is not available on every windows
developer's search path, and if cannot find patch.exe, the build will
continue silently. ( as a result, patch is not applied and for patches
like #17104, this will cause a build break )

This change adds folder `C:\Program Files\Git\usr\bin` to the PATH,
which is the default git installation directory. This may resolve the
patch not found issue for most (hopefully) users.
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
…7106)

### Description
updates the build.bat file in root folder to try best efforts to locate
patch.exe.

patch.exe is needed to apply patches to some of the dependencies. for
example, microsoft#17104. However, patch.exe is not available on every windows
developer's search path, and if cannot find patch.exe, the build will
continue silently. ( as a result, patch is not applied and for patches
like microsoft#17104, this will cause a build break )

This change adds folder `C:\Program Files\Git\usr\bin` to the PATH,
which is the default git installation directory. This may resolve the
patch not found issue for most (hopefully) users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants