File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
LIBGIT2SHA=` cat ./nuget.package/libgit2/libgit2_hash.txt`
6
6
SHORTSHA=${LIBGIT2SHA: 0: 7}
7
+ OS=` uname`
8
+ ARCH=` uname -m`
9
+ PACKAGEPATH=" nuget.package/runtimes"
10
+
11
+ if [[ $OS == " Darwin" ]]; then
12
+ USEHTTPS=" ON"
13
+ else
14
+ USEHTTPS=" OFF"
15
+ fi
7
16
8
17
rm -rf libgit2/build
9
18
mkdir libgit2/build
@@ -21,18 +30,14 @@ cmake -DCMAKE_BUILD_TYPE:STRING=Release \
21
30
-DENABLE_TRACE=ON \
22
31
-DLIBGIT2_FILENAME=git2-$SHORTSHA \
23
32
-DCMAKE_OSX_ARCHITECTURES=" i386;x86_64" \
33
+ -DUSE_HTTPS=$USEHTTPS \
24
34
-DUSE_BUNDLED_ZLIB=ON \
25
35
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
26
36
..
27
37
cmake --build .
28
38
29
39
popd
30
40
31
- OS=` uname`
32
- ARCH=` uname -m`
33
-
34
- PACKAGEPATH=" nuget.package/runtimes"
35
-
36
41
if [[ $RID == " " ]]; then
37
42
if [[ $ARCH == " x86_64" ]]; then
38
43
RID=" unix-x64"
You can’t perform that action at this time.
0 commit comments