Browse Source

Apply mimalloc to iOS only

pull/141/head
ssrlive 2 years ago
parent
commit
3f76ccec97
  1. 3
      build-aarch64-apple-ios-debug.sh
  2. 3
      build-aarch64-apple-ios.sh
  3. 3
      build-apple.sh

3
build-aarch64-apple-ios-debug.sh

@ -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 * }
}

3
build-aarch64-apple-ios.sh

@ -5,7 +5,7 @@ rustup target add aarch64-apple-ios
cargo install cbindgen
echo "Building target aarch64-apple-ios..."
cargo build --release --target aarch64-apple-ios
cargo build --release --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 * }
}

3
build-apple.sh

@ -13,7 +13,7 @@ echo "cargo build --release --target aarch64-apple-darwin"
cargo build --release --target aarch64-apple-darwin
echo "cargo build --release --target aarch64-apple-ios"
cargo build --release --target aarch64-apple-ios
cargo build --release --target aarch64-apple-ios --features mimalloc
echo "cargo build --release --target x86_64-apple-ios"
cargo build --release --target x86_64-apple-ios
@ -28,7 +28,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 * }
}

Loading…
Cancel
Save