Skip to content

Commit f0d1e68

Browse files
authored
Merge pull request light-tech#4 from yonihemi/fix/CFLAGS
Unset CFLAGS after use
2 parents c8dd527 + f01d509 commit f0d1e68

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
@@ -137,6 +135,7 @@ function build_openssl() {
137135

138136
make >/dev/null 2>/dev/null
139137
make install_sw install_ssldirs >/dev/null 2>/dev/null
138+
export -n CFLAGS
140139
}
141140

142141
### Build libssh2 for a given platform (assume openssl was built)

0 commit comments

Comments
 (0)