Skip to content

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

Closed
wants to merge 1 commit into from

Conversation

dscho
Copy link
Member

@dscho dscho commented Nov 6, 2018

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 the CFLAGS (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.

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>
@dscho
Copy link
Member Author

dscho commented Nov 6, 2018

/submit

@gitgitgadget
Copy link

gitgitgadget bot commented Nov 6, 2018

Submitted as pull.67.git.gitgitgadget@gmail.com

Copy link
Member Author

dscho commented Dec 14, 2018

This branch is now known as js/mingw-res-rebuild.

Copy link
Member Author

dscho commented Dec 14, 2018

This patch series was integrated into pu via git@3984764.

Copy link
Member Author

dscho commented Dec 14, 2018

This patch series was integrated into next via git@3984764.

Copy link
Member Author

dscho commented Dec 14, 2018

This patch series was integrated into master via git@3984764.

Copy link
Member Author

dscho commented Dec 14, 2018

Closed via 3984764.

@dscho dscho closed this Dec 14, 2018
@dscho dscho deleted the mingw-git.res-bitness branch December 14, 2018 20:54
@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2018

This branch is now known as js/mingw-res-rebuild.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2018

This patch series was integrated into pu via git@3984764.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2018

This patch series was integrated into next via git@3984764.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2018

This patch series was integrated into master via git@3984764.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2018

Closed via 3984764.

@gitgitgadget

This comment has been minimized.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 15, 2018

This patch series was integrated into maint via git@3984764.

@gitgitgadget gitgitgadget bot added the maint label Dec 15, 2018
@gitgitgadget

This comment has been minimized.

@gitgitgadget

This comment has been minimized.

@gitgitgadget

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant