Skip to content

Commit aaead62

Browse files
committed
Unset CFLAGS after use
1 parent c8dd527 commit aaead62

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build-libgit2-framework.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ export PATH=$PATH:$REPO_ROOT/tools/bin
1010
# Likewise, `maccatalyst` and `macosx` cannot be used together. So unfortunately for now, one will
1111
# needs multiple xcframeworks for x86_64-based and ARM-based Mac development computer.
1212

13-
# Note that iphonesimulator MUST be built first before other platform for otherwise, the lib built
14-
# somehow contains both x86_64 and arm64 binary leading to undefined symbols error!?
1513
# maccatalyst-arm64 macosx macosx-arm64
16-
AVAILABLE_PLATFORMS=(iphonesimulator iphoneos maccatalyst)
14+
AVAILABLE_PLATFORMS=(iphoneos iphonesimulator maccatalyst)
1715

1816
# Download build tools
1917
test -d tools || wget -q https://github.com/light-tech/LLVM-On-iOS/releases/download/llvm12.0.0/tools.tar.xz
@@ -158,6 +156,7 @@ function build_libssh2() {
158156
cmake "${CMAKE_ARGS[@]}" .. >/dev/null 2>/dev/null
159157

160158
cmake --build . --target install >/dev/null 2>/dev/null
159+
export -n CFLAGS
161160
}
162161

163162
### Build libgit2 for a single platform (given as the first and only argument)

0 commit comments

Comments
 (0)