Merge pull request #56 from JL2210/fix-arm64-build

arm64 build cleanup
This commit is contained in:
Peter Squicciarini 2019-03-02 07:01:22 -05:00 committed by GitHub
commit ab7d14add8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 7 deletions

View file

@ -5,9 +5,9 @@ matrix:
- os: linux - os: linux
sudo: required sudo: required
env: BUILDARCH=ia32 env: BUILDARCH=ia32
# - os: linux - os: linux
# sudo: required sudo: required
# env: BUILDARCH=arm64 env: BUILDARCH=arm64
- os: osx - os: osx
language: node_js language: node_js

View file

@ -5,6 +5,12 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
if [[ "$BUILDARCH" == "ia32" ]]; then if [[ "$BUILDARCH" == "ia32" ]]; then
export npm_config_arch=ia32 export npm_config_arch=ia32
export npm_config_target_arch=ia32
fi
if [[ "$BUILDARCH" == "arm64" ]]; then
export npm_config_arch=arm64
export npm_config_target_arch=arm64
fi fi
../update_settings.sh ../update_settings.sh

View file

@ -22,10 +22,15 @@ else
export CXXFLAGS=-m32 export CXXFLAGS=-m32
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
elif [[ $BUILDARCH == "arm64" ]]; then elif [[ $BUILDARCH == "arm64" ]]; then
# Use the default C / C++ compilers, echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/arm64.list >/dev/null
# because some makefiles default to CC:=gcc: sudo dpkg --add-architecture arm64
export CC=/usr/bin/cc sudo apt-get update
export CXX=/usr/bin/c++ sudo apt-get install libc6-dev-arm64-cross gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
sudo apt-get install libx11-dev:arm64 libxkbfile-dev:arm64
export CC=/usr/bin/aarch64-linux-gnu-gcc
export CXX=/usr/bin/aarch64-linux-gnu-g++
export CC_host=/usr/bin/gcc
export CXX_host=/usr/bin/g++
else else
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm jq sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm jq
fi fi