no universal binaries
This commit is contained in:
7
build.sh
7
build.sh
@@ -5,11 +5,10 @@
|
||||
|
||||
[ -z "$CLANG" ] && CLANG=clang
|
||||
[ -z "$STRIP" ] && STRIP=llvm-strip
|
||||
[ -z "$LIPO" ] && LIPO=llvm-lipo
|
||||
|
||||
# build for mac
|
||||
|
||||
for dep in wget $CLANG $STRIP $LIPO; do
|
||||
for dep in wget $CLANG $STRIP; do
|
||||
if ! command -v "$dep" > /dev/null; then
|
||||
error "Missing dependency: $dep"
|
||||
fi
|
||||
@@ -30,10 +29,6 @@ $CLANG $CFLAGS -Ijni-headers -fuse-ld=lld oc2rnet.c -shared -target arm64-apple-
|
||||
|
||||
$STRIP liboc2rnet-*
|
||||
|
||||
$LIPO -create liboc2rnet-*.dylib -output liboc2rnet.dylib
|
||||
|
||||
rm -f liboc2rnet-*.dylib
|
||||
|
||||
# build for other platforms
|
||||
|
||||
if ! [ -d zig ]; then
|
||||
|
||||
Reference in New Issue
Block a user