mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-26 03:51:40 -05:00
ci(): add HOST_CPU to CMake command
As mentioned in the Makefile and CMakeLists.txt: "When cross-compiling, define HOST_CPU as the canonical name of the CPU on which the built Git will run (for instance "x86_64")" This commit sets the HOST_CPU variable since Git for Windows arm64 is cross-compiled from an amd64 host. Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
This commit is contained in:
committed by
Victoria Dye
parent
55e02d7863
commit
fe07c1eed3
2
.github/workflows/git-artifacts.yml
vendored
2
.github/workflows/git-artifacts.yml
vendored
@@ -291,7 +291,7 @@ jobs:
|
||||
run: |
|
||||
cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/arm64-windows \
|
||||
-DNO_GETTEXT=YesPlease -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON -DCMAKE_GENERATOR_PLATFORM=arm64 -DVCPKG_ARCH=arm64-windows \
|
||||
-DCMAKE_INSTALL_PREFIX="`pwd`/git-arm64" -DSKIP_DASHED_BUILT_INS=ON
|
||||
-DCMAKE_INSTALL_PREFIX="`pwd`/git-arm64" -DSKIP_DASHED_BUILT_INS=ON -DHOST_CPU=arm64
|
||||
- name: MSBuild
|
||||
if: env.SKIP != 'true'
|
||||
run: msbuild git.sln -property:Configuration=Release
|
||||
|
||||
Reference in New Issue
Block a user