mirror of
https://gitlab.com/signald/libraries/libsignal-client.git
synced 2024-12-04 11:36:37 +00:00
tweak cargo build invocation
This commit is contained in:
parent
4a2ee2fd9c
commit
a406790abf
1 changed files with 2 additions and 16 deletions
|
@ -5,6 +5,7 @@ stages:
|
|||
variables:
|
||||
libsignal_version: "v0.21.1"
|
||||
GRADLE_OPTS: -Dorg.gradle.daemon=false
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
.multitarget:
|
||||
parallel:
|
||||
|
@ -40,24 +41,9 @@ compile:
|
|||
- cd libsignal-client && git checkout "$libsignal_version"
|
||||
- rustup target add "${TARGET}"
|
||||
- if [[ -d ../target ]]; then mv ../target target; fi
|
||||
- RUSTFLAGS="$(../rustflags.sh)" cargo build -p libsignal-jni --target "${TARGET}" --release --verbose
|
||||
- RUSTFLAGS="$(../rustflags.sh)" cargo build +stable --target "${TARGET}" --workspace --verbose
|
||||
- cp -v target/${TARGET}/release/libsignal_jni.so ../libsignal_jni-${TARGET}.so
|
||||
- cp target/ ../target
|
||||
# variables:
|
||||
# CC: clang-13
|
||||
# CXX: clang++-13
|
||||
# CPP: clang-cpp-13
|
||||
# AR: llvm-ar-13
|
||||
# STRIP: llvm-strip-13
|
||||
# RANLIB: llvm-ranlib-13
|
||||
# AS: llvm-as-13
|
||||
# OBJDUMP: llvm-objdump-13
|
||||
# OBJCOPY: llvm-objcopy-13
|
||||
# READELF: llvm-readelf-13
|
||||
# NM: llvm-nm-13
|
||||
# CC_LD: lld-13
|
||||
# CXX_LD: lld-13
|
||||
# LD: lld-13
|
||||
cache:
|
||||
paths:
|
||||
- target/
|
||||
|
|
Loading…
Reference in a new issue