Skip to content

Commit

Permalink
[arm64] Allow cross-compiling arm64 -> arm
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Nov 23, 2020
1 parent 2ff5e7f commit e73a3d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gni/snapshot_toolchain.gni
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ if (v8_snapshot_toolchain == "") {
# cross compile Windows arm64 with host toolchain.
v8_snapshot_toolchain = host_toolchain
}
} else if (current_os == host_os && current_cpu == "arm" &&
host_cpu == "arm64") {
# This is an arm64 -> arm cross-compile, but arm64 hosts can usually run arm
# binaries built for the same OS, so build the snapshot with the current
# toolchain here, too.
v8_snapshot_toolchain = current_toolchain
}
}

Expand Down

0 comments on commit e73a3d4

Please sign in to comment.