From 462e24caef55a18e827452af0845be097487ab58 Mon Sep 17 00:00:00 2001 From: afinch7 Date: Mon, 18 Feb 2019 11:52:27 -0500 Subject: [PATCH 1/4] Added armhf build. Still needs to be tested. --- .travis.yml | 9 +++++++-- args.linux.gn => args.linux.amd64.gn | 0 args.linux.armhf.gn | 24 ++++++++++++++++++++++++ args.osx.gn => args.osx.amd64.gn | 0 4 files changed, 31 insertions(+), 2 deletions(-) rename args.linux.gn => args.linux.amd64.gn (100%) create mode 100644 args.linux.armhf.gn rename args.osx.gn => args.osx.amd64.gn (100%) diff --git a/.travis.yml b/.travis.yml index 137016a..1d15017 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,18 @@ language: c++ matrix: include: - os: linux + arch: amd64 + sudo: required + - os: linux + arch: armhf sudo: required - os: osx + arch: amd64 env: global: - CCACHE_CPP2=yes - CCACHE_SLOPPINESS=time_macros - - V8_ARCHIVE_NAME=v8-${TRAVIS_OS_NAME}-x64.tar.gz + - V8_ARCHIVE_NAME=v8-${TRAVIS_OS_NAME}-${TRAVIS_ARCH_NAME}.tar.gz cache: ccache: true if: tag IS present @@ -49,7 +54,7 @@ install: script: - cd v8 -- gn gen out.gn/lib --args=''"$(cat ../args.${TRAVIS_OS_NAME}.gn)"'' +- gn gen out.gn/lib --args=''"$(cat ../args.${TRAVIS_OS_NAME}.${TRAVIS_ARCH_NAME}.gn)"'' - ninja -C out.gn/lib v8_monolith - cd .. diff --git a/args.linux.gn b/args.linux.amd64.gn similarity index 100% rename from args.linux.gn rename to args.linux.amd64.gn diff --git a/args.linux.armhf.gn b/args.linux.armhf.gn new file mode 100644 index 0000000..73fd9bd --- /dev/null +++ b/args.linux.armhf.gn @@ -0,0 +1,24 @@ +target_cpu = "arm" +cc_wrapper = "ccache" +is_cfi = false +is_official_build = true +v8_deprecation_warnings = false +v8_enable_gdbjit = false +v8_enable_i18n_support = false +v8_experimental_extra_library_files = [] +v8_extra_library_files = [] +v8_imminent_deprecation_warnings = false +v8_monolithic = true +v8_untrusted_code_mitigations = false +v8_use_external_startup_data = false +v8_use_snapshot = true +is_clang=false +use_sysroot=false +treat_warnings_as_errors=false +v8_monolithic=true +use_drfuzz=false +use_libfuzzer=false +v8_enable_test_features="" +use_glib=false +use_custom_libcxx=false +use_custom_libcxx_for_host=false \ No newline at end of file diff --git a/args.osx.gn b/args.osx.amd64.gn similarity index 100% rename from args.osx.gn rename to args.osx.amd64.gn From b7d61305b5dbe666b9d3956cdecf94bacde3feca Mon Sep 17 00:00:00 2001 From: afinch7 Date: Mon, 18 Feb 2019 12:15:15 -0500 Subject: [PATCH 2/4] Fixed issues with travis config. --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1d15017..7d46ef1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,18 +2,18 @@ language: c++ matrix: include: - os: linux - arch: amd64 sudo: required + env: V8_BUILD_ARCH=amd64 - os: linux - arch: armhf sudo: required + env: V8_BUILD_ARCH=armhf - os: osx - arch: amd64 + env: V8_BUILD_ARCH=amd64 env: global: - CCACHE_CPP2=yes - CCACHE_SLOPPINESS=time_macros - - V8_ARCHIVE_NAME=v8-${TRAVIS_OS_NAME}-${TRAVIS_ARCH_NAME}.tar.gz + - V8_ARCHIVE_NAME=v8-${TRAVIS_OS_NAME}-${V8_BUILD_ARCH}.tar.gz cache: ccache: true if: tag IS present @@ -54,7 +54,7 @@ install: script: - cd v8 -- gn gen out.gn/lib --args=''"$(cat ../args.${TRAVIS_OS_NAME}.${TRAVIS_ARCH_NAME}.gn)"'' +- gn gen out.gn/lib --args=''"$(cat ../args.${TRAVIS_OS_NAME}.${V8_BUILD_ARCH}.gn)"'' - ninja -C out.gn/lib v8_monolith - cd .. From d910954c24bb3057fe94cf886928c2a9ce416896 Mon Sep 17 00:00:00 2001 From: afinch7 Date: Mon, 18 Feb 2019 12:26:26 -0500 Subject: [PATCH 3/4] Added arm g++ compiler to apt packages. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 7d46ef1..70ab250 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,6 +32,7 @@ addons: - gcc-5 - g++-5 - libatspi2.0-dev + - g++-arm-linux-gnueabihf install: From 0b27f72c756d67031e1bf908a18cf2e30b017cae Mon Sep 17 00:00:00 2001 From: afinch7 Date: Mon, 18 Feb 2019 13:08:15 -0500 Subject: [PATCH 4/4] Added more dependencies for arm cross compiling. --- .travis.yml | 5 +++++ args.linux.armhf.gn | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 70ab250..753d86a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,11 @@ matrix: include: - os: linux sudo: required + dist: xenial env: V8_BUILD_ARCH=amd64 - os: linux sudo: required + dist: xenial env: V8_BUILD_ARCH=armhf - os: osx env: V8_BUILD_ARCH=amd64 @@ -33,6 +35,9 @@ addons: - g++-5 - libatspi2.0-dev - g++-arm-linux-gnueabihf + - gcc-arm-linux-gnueabihf + - g++-multilib-arm-linux-gnueabihf + - libc6-armhf-cross install: diff --git a/args.linux.armhf.gn b/args.linux.armhf.gn index 73fd9bd..2eccca0 100644 --- a/args.linux.armhf.gn +++ b/args.linux.armhf.gn @@ -21,4 +21,5 @@ use_libfuzzer=false v8_enable_test_features="" use_glib=false use_custom_libcxx=false -use_custom_libcxx_for_host=false \ No newline at end of file +use_custom_libcxx_for_host=false +v8_target_cpu = "arm" \ No newline at end of file