summaryrefslogtreecommitdiff
path: root/Documentation/git-merge-base.txt
diff options
context:
space:
mode:
authorLibravatar Sibi Siddharthan <sibisiddharthan.github@gmail.com>2020-06-26 16:11:37 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-06-26 10:08:46 -0700
commit7f475e2780fe3bf753372af9e8f33cff5df2e589 (patch)
tree8a4993673a88cfb5831d5b9cd2ccfe9b64af35d3 /Documentation/git-merge-base.txt
parentcmake: support for building git on windows with mingw (diff)
downloadtgif-7f475e2780fe3bf753372af9e8f33cff5df2e589.tar.xz
cmake: support for building git on windows with msvc and clang.
This patch adds support for Visual Studio and Clang builds The minimum required version of CMake is upgraded to 3.15 because this version offers proper support for Clang builds on Windows. Libintl is not searched for when building with Visual Studio or Clang because there is no binary compatible version available yet. NOTE: In the link options invalidcontinue.obj has to be included. The reason for this is because by default, Windows calls abort()'s instead of setting errno=EINVAL when invalid arguments are passed to standard functions. This commit explains it in detail: 4b623d80f73528a632576990ca51e34c333d5dd6 On Windows the default generator is Visual Studio,so for Visual Studio builds do this: cmake `relative-path-to-srcdir` NOTE: Visual Studio generator is a multi config generator, which means that Debug and Release builds can be done on the same build directory. For Clang builds do this: On bash CC=clang cmake `relative-path-to-srcdir` -G Ninja -DCMAKE_BUILD_TYPE=[Debug or Release] On cmd set CC=Clang cmake `relative-path-to-srcdir` -G Ninja -DCMAKE_BUILD_TYPE=[Debug or Release] Signed-off-by: Sibi Siddharthan <sibisiddharthan.github@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-merge-base.txt')
0 files changed, 0 insertions, 0 deletions