Apply mimalloc to iOS only

This commit is contained in:
ssrlive 2024-08-03 18:21:02 +08:00
parent f787ff6d23
commit 3f76ccec97
3 changed files with 3 additions and 6 deletions

View file

@ -5,7 +5,7 @@ rustup target add aarch64-apple-ios
cargo install cbindgen
echo "Building target aarch64-apple-ios..."
cargo build --target aarch64-apple-ios
cargo build --target aarch64-apple-ios --features mimalloc
echo "Generating includes..."
mkdir -p target/include/
@ -14,7 +14,6 @@ cbindgen --config cbindgen.toml -l C --cpp-compat -o target/include/tun2proxy.h
cat > target/include/tun2proxy.modulemap <<EOF
framework module tun2proxy {
umbrella header "tun2proxy.h"
export *
module * { export * }
}