mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 06:16:30 +03:00
Fix arm builds
This commit is contained in:
parent
39041ee95e
commit
a28a12c56c
@ -10,11 +10,11 @@ matrix:
|
||||
- name: "linux-arm64"
|
||||
os: linux
|
||||
dist: bionic
|
||||
env: EXTRA_FLAGS='target_cpu="arm64" use_sysroot=true'
|
||||
env: EXTRA_FLAGS='target_cpu="arm64"'
|
||||
- name: "linux-arm"
|
||||
os: linux
|
||||
dist: bionic
|
||||
env: EXTRA_FLAGS='target_cpu="arm" use_sysroot=true'
|
||||
env: EXTRA_FLAGS='target_cpu="arm"'
|
||||
- name: "osx"
|
||||
os: osx
|
||||
osx_image: xcode10.2
|
||||
|
@ -37,7 +37,6 @@ flags="$flags"'
|
||||
|
||||
fatal_linker_warnings=false
|
||||
treat_warnings_as_errors=false
|
||||
use_sysroot=false
|
||||
|
||||
fieldtrial_testing_like_official_build=true
|
||||
|
||||
|
@ -9,25 +9,26 @@ esac
|
||||
|
||||
eval "$EXTRA_FLAGS"
|
||||
|
||||
if [ "$use_sysroot" = true ]; then
|
||||
ln -sfn / ./build/linux/debian_sid_amd64-sysroot
|
||||
sudo mount --bind /usr/lib/x86_64-linux-gnu/pkgconfig /usr/lib/pkgconfig
|
||||
build_sysroot() {
|
||||
local lower="$(echo "$1" | tr '[:upper:]' '[:lower:]')"
|
||||
./build/linux/sysroot_scripts/sysroot-creator-sid-naive.sh "BuildSysroot$1"
|
||||
rm -rf "./build/linux/debian_sid_$lower-sysroot"
|
||||
mkdir "./build/linux/debian_sid_$lower-sysroot"
|
||||
tar xf "./out/sysroot-build/sid/debian_sid_${lower}_sysroot.tar.xz" -C "./build/linux/debian_sid_$lower-sysroot"
|
||||
}
|
||||
|
||||
if [ "$ARCH" = Linux ]; then
|
||||
case "$target_cpu" in
|
||||
arm64)
|
||||
rm -rf ./build/linux/debian_sid_arm64-sysroot
|
||||
./build/linux/sysroot_scripts/sysroot-creator-sid-naive.sh BuildSysrootARM64
|
||||
mkdir -p ./build/linux/debian_sid_arm64-sysroot
|
||||
tar xf ./out/sysroot-build/sid/debian_sid_arm64_sysroot.tar.xz -C ./build/linux/debian_sid_arm64-sysroot
|
||||
build_sysroot Amd64
|
||||
build_sysroot ARM64
|
||||
;;
|
||||
arm)
|
||||
rm -rf ./build/linux/debian_sid_arm-sysroot
|
||||
./build/linux/sysroot_scripts/sysroot-creator-sid-naive.sh BuildSysrootARM
|
||||
mkdir -p ./build/linux/debian_sid_arm-sysroot
|
||||
tar xf ./out/sysroot-build/sid/debian_sid_arm_sysroot.tar.xz -C ./build/linux/debian_sid_arm-sysroot
|
||||
rm -rf ./build/linux/debian_sid_i386-sysroot
|
||||
./build/linux/sysroot_scripts/sysroot-creator-sid-naive.sh BuildSysrootI386
|
||||
mkdir -p ./build/linux/debian_sid_i386-sysroot
|
||||
tar xf ./out/sysroot-build/sid/debian_sid_i386_sysroot.tar.xz -C ./build/linux/debian_sid_i386-sysroot
|
||||
build_sysroot I386
|
||||
build_sysroot ARM
|
||||
;;
|
||||
*)
|
||||
build_sysroot Amd64
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user