mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-17 04:23:29 -05:00
Merge pull request #3056 from dscho/cmake-and-skip-dashed-built-ins
Teach our CMake configuration to optionally skip hard-linking the dashed built-ins
This commit is contained in:
2
.github/workflows/git-artifacts.yml
vendored
2
.github/workflows/git-artifacts.yml
vendored
@@ -292,7 +292,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"
|
||||
-DCMAKE_INSTALL_PREFIX="`pwd`/git-arm64" -DSKIP_DASHED_BUILT_INS=ON
|
||||
- name: MSBuild
|
||||
run: msbuild git.sln -property:Configuration=Release
|
||||
- name: Link the Git executables
|
||||
|
||||
@@ -695,13 +695,17 @@ endif()
|
||||
|
||||
parse_makefile_for_executables(git_builtin_extra "BUILT_INS")
|
||||
|
||||
option(SKIP_DASHED_BUILT_INS "Skip hardlinking the dashed versions of the built-ins")
|
||||
|
||||
#Creating hardlinks
|
||||
if(NOT SKIP_DASHED_BUILT_INS)
|
||||
foreach(s ${git_SOURCES} ${git_builtin_extra})
|
||||
string(REPLACE "${CMAKE_SOURCE_DIR}/builtin/" "" s ${s})
|
||||
string(REPLACE ".c" "" s ${s})
|
||||
file(APPEND ${CMAKE_BINARY_DIR}/CreateLinks.cmake "file(CREATE_LINK git${EXE_EXTENSION} git-${s}${EXE_EXTENSION})\n")
|
||||
list(APPEND git_links ${CMAKE_BINARY_DIR}/git-${s}${EXE_EXTENSION})
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
if(CURL_FOUND)
|
||||
set(remote_exes
|
||||
|
||||
Reference in New Issue
Block a user