summaryrefslogtreecommitdiffstats
path: root/src/buildtools/configure_target.pro
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-22 11:38:39 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-25 20:42:21 +0000
commit08ee7d8eaa621bf88c30f3c354053625de0b0da0 (patch)
tree8a06d97c9feef96b3dfae556fe4ed974d9ae920f /src/buildtools/configure_target.pro
parent3a463740b2026767b87662d70b9aa5a2c85115e5 (diff)
Create v8_snapshot gn toolchain from one pro file
Merge the generation of the v8_snapshot toolchain back to being made in configure_host.pro. This is a lot cleaner and safer against errors, to make it work however we need to cache the target archicture so that it is still available with option(host_build) enabled. Change-Id: Iefed9c97528f8ce338e7a0d4fe5c6884fb4ef4bd Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/buildtools/configure_target.pro')
-rw-r--r--src/buildtools/configure_target.pro12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/buildtools/configure_target.pro b/src/buildtools/configure_target.pro
index 1750f4e6f..54841bf51 100644
--- a/src/buildtools/configure_target.pro
+++ b/src/buildtools/configure_target.pro
@@ -7,19 +7,7 @@ GN_OS = $$gnOS()
clang: GN_CLANG = true
else: GN_CLANG = false
-GN_V8_HOST_CPU = $$gnArch($$QMAKE_HOST.arch)
-contains(GN_CPU, "arm")|contains(GN_CPU, "mips")|contains(GN_CPU, "x86") {
- # The v8 snapshot need a host that matches bitwidth, so we build makesnapshot to 32-bit variants of host.
- contains(GN_V8_HOST_CPU, x64): GN_V8_HOST_CPU = "x86"
- else: contains(GN_V8_HOST_CPU, arm64): GN_V8_HOST_CPU = "arm"
- else: contains(GN_V8_HOST_CPU, mips64): GN_V8_HOST_CPU = "mips"
-}
-
GN_CONTENTS = \
-" current_cpu = \"$$GN_V8_HOST_CPU\" " \
-" v8_current_cpu = \"$$GN_CPU\" " \
-" } " \
-"}" \
"gcc_toolchain(\"target\") {" \
" cc = \"$$which($$QMAKE_CC)\" " \
" cxx = \"$$which($$QMAKE_CXX)\" " \