set MACOSX_DEPLOYMENT_TARGET for osx release builds

This commit is contained in:
Ted Mielczarek 2016-07-28 06:18:17 -04:00
Родитель 4c460d133b
Коммит b7a6a11de8
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -17,6 +17,7 @@ mkdir -p "$destdir"
tmpdir=$(mktemp -d) tmpdir=$(mktemp -d)
stagedir=$tmpdir/sccache2 stagedir=$tmpdir/sccache2
mkdir $stagedir mkdir $stagedir
cargo clean
case $system in case $system in
MINGW*) MINGW*)
cargo build --release && cargo test --release cargo build --release && cargo test --release
@ -32,6 +33,7 @@ case $system in
compress=xz compress=xz
;; ;;
Darwin) Darwin)
export MACOSX_DEPLOYMENT_TARGET=10.7
cargo build --release && cargo test --release cargo build --release && cargo test --release
cp target/release/sccache "$stagedir" cp target/release/sccache "$stagedir"
strip "$stagedir/sccache" strip "$stagedir/sccache"