mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-20 22:09:09 +00:00
Apply mimalloc to iOS only
This commit is contained in:
parent
f787ff6d23
commit
3f76ccec97
3 changed files with 3 additions and 6 deletions
|
@ -5,7 +5,7 @@ rustup target add aarch64-apple-ios
|
||||||
cargo install cbindgen
|
cargo install cbindgen
|
||||||
|
|
||||||
echo "Building target aarch64-apple-ios..."
|
echo "Building target aarch64-apple-ios..."
|
||||||
cargo build --target aarch64-apple-ios
|
cargo build --target aarch64-apple-ios --features mimalloc
|
||||||
|
|
||||||
echo "Generating includes..."
|
echo "Generating includes..."
|
||||||
mkdir -p target/include/
|
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
|
cat > target/include/tun2proxy.modulemap <<EOF
|
||||||
framework module tun2proxy {
|
framework module tun2proxy {
|
||||||
umbrella header "tun2proxy.h"
|
umbrella header "tun2proxy.h"
|
||||||
|
|
||||||
export *
|
export *
|
||||||
module * { export * }
|
module * { export * }
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ rustup target add aarch64-apple-ios
|
||||||
cargo install cbindgen
|
cargo install cbindgen
|
||||||
|
|
||||||
echo "Building target aarch64-apple-ios..."
|
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..."
|
echo "Generating includes..."
|
||||||
mkdir -p target/include/
|
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
|
cat > target/include/tun2proxy.modulemap <<EOF
|
||||||
framework module tun2proxy {
|
framework module tun2proxy {
|
||||||
umbrella header "tun2proxy.h"
|
umbrella header "tun2proxy.h"
|
||||||
|
|
||||||
export *
|
export *
|
||||||
module * { export * }
|
module * { export * }
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ echo "cargo build --release --target aarch64-apple-darwin"
|
||||||
cargo build --release --target aarch64-apple-darwin
|
cargo build --release --target aarch64-apple-darwin
|
||||||
|
|
||||||
echo "cargo build --release --target aarch64-apple-ios"
|
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"
|
echo "cargo build --release --target x86_64-apple-ios"
|
||||||
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
|
cat > target/include/tun2proxy.modulemap <<EOF
|
||||||
framework module tun2proxy {
|
framework module tun2proxy {
|
||||||
umbrella header "tun2proxy.h"
|
umbrella header "tun2proxy.h"
|
||||||
|
|
||||||
export *
|
export *
|
||||||
module * { export * }
|
module * { export * }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue