-
Notifications
You must be signed in to change notification settings - Fork 150
Windows: force-recompile git.res for differing architectures #67
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
Conversation
When git.rc is compiled into git.res, the result is actually dependent on the architecture. That is, you cannot simply link a 32-bit git.res into a 64-bit git.exe. Therefore, to allow 32-bit and 64-bit builds in the same directory, we let git.res depend on GIT-PREFIX so that it gets recompiled when compiling for a different architecture (this works because the exec path changes based on the architecture: /mingw32/libexec/git-core for 32-bit and /mingw64/libexec/git-core for 64-bit). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
/submit |
Submitted as pull.67.git.gitgitgadget@gmail.com |
This branch is now known as |
This patch series was integrated into pu via git@3984764. |
This patch series was integrated into next via git@3984764. |
This patch series was integrated into master via git@3984764. |
Closed via 3984764. |
This branch is now known as |
This patch series was integrated into pu via git@3984764. |
This patch series was integrated into next via git@3984764. |
This patch series was integrated into master via git@3984764. |
Closed via 3984764. |
This comment has been minimized.
This comment has been minimized.
This patch series was integrated into maint via git@3984764. |
This is a patch designed to help maintaining Git for Windows better: when the same source code is "cross-compiled" for i686 as well as x86_64, we want to rebuild the whole thing, including the resource file
git.res
.Note: regular C files are re-compiled appropriately, as the default prefix in Git for Windows is
/mingw32
or/mingw64
depending on the architecture, and this difference is manifested in theCFLAGS
(which, upon change, trigger a complete rebuild).As non-Windows platforms do not even compile these
.res
files, this patch should have exactly no effect on non-Windows builds.