fix cross compile for osx
This commit is contained in:
parent
3fbc6748bc
commit
5cbf5e7a4c
10
Cargo.lock
generated
10
Cargo.lock
generated
@ -1199,13 +1199,13 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "futures-intrusive"
|
||||
version = "0.4.1"
|
||||
version = "0.4.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1b6bdbb8c5a42b2bb5ee8dd9dc2c7d73ce3e15d26dfe100fb347ffa3f58c672b"
|
||||
checksum = "a604f7a68fbf8103337523b1fadc8ade7361ee3f112f7c680ad179651616aed5"
|
||||
dependencies = [
|
||||
"futures-core",
|
||||
"lock_api",
|
||||
"parking_lot 0.12.1",
|
||||
"parking_lot 0.11.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -1982,9 +1982,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "num_cpus"
|
||||
version = "1.13.1"
|
||||
version = "1.14.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
|
||||
checksum = "f6058e64324c71e02bc2b150e4f3bc8286db6c83092132ffa3f6b1eab0f9def5"
|
||||
dependencies = [
|
||||
"hermit-abi",
|
||||
"libc",
|
||||
|
@ -54,8 +54,15 @@ for target in "${targets[@]}"; do
|
||||
if [[ -f "ffplayout-v${version}_${target}.tar.gz" ]]; then
|
||||
rm -f "ffplayout-v${version}_${target}.tar.gz"
|
||||
fi
|
||||
c_cc="x86_64-apple-darwin20.4-clang"
|
||||
c_cxx="x86_64-apple-darwin20.4-clang++"
|
||||
|
||||
CC="x86_64-apple-darwin20.4-cc" cargo build --release --target=$target
|
||||
if [[ $target == "aarch64-apple-darwin" ]]; then
|
||||
c_cc="aarch64-apple-darwin20.4-clang"
|
||||
c_cxx="aarch64-apple-darwin20.4-clang++"
|
||||
fi
|
||||
|
||||
CC="$c_cc" CXX="$c_cxx" cargo build --release --target=$target
|
||||
|
||||
cp ./target/${target}/release/ffpapi .
|
||||
cp ./target/${target}/release/ffplayout .
|
||||
|
Loading…
Reference in New Issue
Block a user