mirror of
https://github.com/git-for-windows/git.git
synced 2026-02-04 03:33:01 -06:00
Git's regular Makefile mentions that HOST_CPU should be defined when cross-compiling Git:37796bca76/Makefile (L438-L439)This is then used to set the GIT_HOST_CPU variable when compiling Git:37796bca76/Makefile (L1337-L1341)Then, when the user runs `git version --build-options`, it returns that value:37796bca76/help.c (L658)This commit adds the same functionality to the CMake configuration. Users can now set -DHOST_CPU= to set the target architecture. Signed-off-by: Dennis Ameling <dennis@dennisameling.com>