Skip to content

Commit cf7c5e5

Browse files
author
Edward Thomson
committed
Update libgit2 to build with GIT_TRACE
Build libgit2 with tracing information so that we can provide it to consumers.
1 parent e263898 commit cf7c5e5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

UpdateLibgit2ToSha.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function Assert-Consistent-Naming($expected, $path) {
144144
Run-Command -Quiet { & remove-item build -recurse -force }
145145
Run-Command -Quiet { & mkdir build }
146146
cd build
147-
Run-Command -Quiet -Fatal { & $cmake -G "Visual Studio $vs" -D THREADSAFE=ON -D "BUILD_CLAR=$build_clar" -D "LIBGIT2_FILENAME=$binaryFilename" -DSTDCALL=ON .. }
147+
Run-Command -Quiet -Fatal { & $cmake -G "Visual Studio $vs" -D THREADSAFE=ON -D ENABLE_TRACE=ON -D "BUILD_CLAR=$build_clar" -D "LIBGIT2_FILENAME=$binaryFilename" -DSTDCALL=ON .. }
148148
Run-Command -Quiet -Fatal { & $cmake --build . --config $configuration }
149149
if ($test.IsPresent) { Run-Command -Quiet -Fatal { & $ctest -V . } }
150150
cd $configuration
@@ -157,7 +157,7 @@ function Assert-Consistent-Naming($expected, $path) {
157157
cd ..
158158
Run-Command -Quiet { & mkdir build64 }
159159
cd build64
160-
Run-Command -Quiet -Fatal { & $cmake -G "Visual Studio $vs Win64" -D THREADSAFE=ON -D "BUILD_CLAR=$build_clar" -D "LIBGIT2_FILENAME=$binaryFilename" -DSTDCALL=ON ../.. }
160+
Run-Command -Quiet -Fatal { & $cmake -G "Visual Studio $vs Win64" -D THREADSAFE=ON -D ENABLE_TRACE=ON -D "BUILD_CLAR=$build_clar" -D "LIBGIT2_FILENAME=$binaryFilename" -DSTDCALL=ON ../.. }
161161
Run-Command -Quiet -Fatal { & $cmake --build . --config $configuration }
162162
if ($test.IsPresent) { Run-Command -Quiet -Fatal { & $ctest -V . } }
163163
cd $configuration

build.libgit2sharp.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
1212
-DTHREADSAFE:BOOL=ON \
1313
-DBUILD_CLAR:BOOL=OFF \
1414
-DUSE_SSH=OFF \
15+
-DENABLE_TRACE=ON \
1516
-DLIBGIT2_FILENAME=git2-$SHORTSHA \
1617
-DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
1718
..

0 commit comments

Comments
 (0)