File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ jobs:
166
166
shell : bash
167
167
run : |
168
168
cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/${{ matrix.arch }}-windows \
169
- -DNO_GETTEXT=YesPlease -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DVCPKG_ARCH=${{ matrix.arch }}-windows
169
+ -DNO_GETTEXT=YesPlease -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DVCPKG_ARCH=${{ matrix.arch }}-windows -DHOST_CPU=${{ matrix.arch }}
170
170
- name : MSBuild
171
171
run : msbuild git.sln -property:Configuration=Release -property:Platform=${{ matrix.arch }} -maxCpuCount:4 -property:PlatformToolset=v142
172
172
- name : bundle artifact tar
Original file line number Diff line number Diff line change @@ -213,7 +213,14 @@ endif()
213
213
214
214
#default behaviour
215
215
include_directories (${CMAKE_SOURCE_DIR} )
216
- add_compile_definitions (GIT_HOST_CPU= "${CMAKE_SYSTEM_PROCESSOR} " )
216
+
217
+ # When cross-compiling, define HOST_CPU as the canonical name of the CPU on
218
+ # which the built Git will run (for instance "x86_64").
219
+ if (NOT HOST_CPU )
220
+ add_compile_definitions (GIT_HOST_CPU= "${CMAKE_SYSTEM_PROCESSOR} " )
221
+ else ()
222
+ add_compile_definitions (GIT_HOST_CPU= "${HOST_CPU} " )
223
+ endif ()
217
224
add_compile_definitions (SHA256_BLK INTERNAL_QSORT RUNTIME_PREFIX )
218
225
add_compile_definitions (NO_OPENSSL SHA1_DC SHA1DC_NO_STANDARD_INCLUDES
219
226
SHA1DC_INIT_SAFE_HASH_DEFAULT=0
You can’t perform that action at this time.
0 commit comments