libunwind: use CXX and CC
This commit is contained in:
parent
a70c3b89a5
commit
c195af9916
1 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
pkgver=14.0.0
|
||||
pkgver=14.0.1
|
||||
pkgname=libunwind
|
||||
bad=""
|
||||
ext="dev"
|
||||
|
@ -14,9 +14,9 @@ build() {
|
|||
|
||||
PREFIX=/usr
|
||||
|
||||
[ -z "$FOR_CROSS"] || PREFIX=$FOR_CROSS_DIR
|
||||
[ -z "$FOR_CROSS" ] || PREFIX=$FOR_CROSS_DIR
|
||||
|
||||
if [ ! -z "$WITH_CROSS"]; then
|
||||
if [ ! -z "$WITH_CROSS" ]; then
|
||||
cmake_extra_flags=-DCMAKE_SYSROOT=$WITH_CROSS_DIR
|
||||
fi
|
||||
|
||||
|
@ -28,9 +28,9 @@ build() {
|
|||
-DLIBUNWIND_SUPPORTS_FNO_EXCEPTIONS_FLAG=1 \
|
||||
-DLIBCXXABI_USE_LLVM_UNWINDER=YES \
|
||||
-DLIBCXX_HAS_MUSL_LIBC=ON \
|
||||
-DCMAKE_ASM_COMPILER=clang \
|
||||
-DCMAKE_C_COMPILER=clang \
|
||||
-DCMAKE_CXX_COMPILER=clang++ \
|
||||
-DCMAKE_ASM_COMPILER=$CC \
|
||||
-DCMAKE_C_COMPILER=$CC \
|
||||
-DCMAKE_CXX_COMPILER=$CXX \
|
||||
-DCMAKE_ASM_COMPILER_TARGET=$ARCH-linux-musl \
|
||||
-DCMAKE_C_COMPILER_TARGET=$ARCH-linux-musl \
|
||||
-DCMAKE_CXX_COMPILER_TARGET=$ARCH-linux-musl \
|
||||
|
|
Loading…
Reference in a new issue