Skip to content

Commit fa2fc4e

Browse files
committed
Windows: force-recompile git.res for differing architectures
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 <[email protected]>
1 parent ae8bfa0 commit fa2fc4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ $(SCRIPT_LIB) : % : %.sh GIT-SCRIPT-DEFINES
19131913
$(QUIET_GEN)$(cmd_munge_script) && \
19141914
mv $@+ $@
19151915

1916-
git.res: git.rc GIT-VERSION-FILE
1916+
git.res: git.rc GIT-VERSION-FILE GIT-PREFIX
19171917
$(QUIET_RC)$(RC) \
19181918
$(join -DMAJOR= -DMINOR= -DMICRO= -DPATCHLEVEL=, $(wordlist 1, 4, \
19191919
$(shell echo $(GIT_VERSION) 0 0 0 0 | tr '.a-zA-Z-' ' '))) \

0 commit comments

Comments
 (0)