зеркало из https://github.com/mozilla/sccache.git
set MACOSX_DEPLOYMENT_TARGET for osx release builds
This commit is contained in:
Родитель
4c460d133b
Коммит
b7a6a11de8
|
@ -17,6 +17,7 @@ mkdir -p "$destdir"
|
|||
tmpdir=$(mktemp -d)
|
||||
stagedir=$tmpdir/sccache2
|
||||
mkdir $stagedir
|
||||
cargo clean
|
||||
case $system in
|
||||
MINGW*)
|
||||
cargo build --release && cargo test --release
|
||||
|
@ -32,6 +33,7 @@ case $system in
|
|||
compress=xz
|
||||
;;
|
||||
Darwin)
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.7
|
||||
cargo build --release && cargo test --release
|
||||
cp target/release/sccache "$stagedir"
|
||||
strip "$stagedir/sccache"
|
||||
|
|
Загрузка…
Ссылка в новой задаче