This commit is contained in:
Un1q32
2025-04-20 03:10:34 -04:00
parent eb5b60fdae
commit d25f1c38df

View File

@@ -1,7 +1,7 @@
#!/bin/sh -e
# shellcheck disable=2086
[ -z "$CFLAGS" ] && CFLAGS='-O2 -Wall -Wextra -pedantic'
[ -z "$CFLAGS" ] && CFLAGS='-Os -Wall -Wextra -pedantic'
CLANG=clang
STRIP=llvm-strip
@@ -45,3 +45,5 @@ zig/zig cc $CFLAGS -Ijni-headers oc2rnet.c -static -shared -target x86_64-linux-
zig/zig cc $CFLAGS -Ijni-headers oc2rnet.c -static -shared -target aarch64-linux-musl -o liboc2rnet-arm64.so
zig/zig cc $CFLAGS -Ijni-headers oc2rnet.c -shared -target x86_64-windows-gnu -o oc2rnet-x86_64.dll -licmp
zig/zig cc $CFLAGS -Ijni-headers oc2rnet.c -shared -target aarch64-windows-gnu -o oc2rnet-arm64.dll -licmp
$STRIP *.so