build: fix mkpeephole configuration

mkpeephole is a binary that gets generated and run at V8 build time.
On cross-compilation builds separate build toolchains are required.
Similar to want_separate_host_toolset we default to disabled.

PR-URL: https://github.com/nodejs/node/pull/8317
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
pull/8317/head
Ali Ijaz Sheikh 2016-08-24 21:36:32 -07:00 committed by Michaël Zasso
parent 2187bd3b4a
commit 19c9567686
1 changed files with 2 additions and 0 deletions

2
configure vendored
View File

@ -760,6 +760,8 @@ def configure_node(o):
want_snapshots = not options.without_snapshot
o['variables']['want_separate_host_toolset'] = int(
cross_compiling and want_snapshots)
o['variables']['want_separate_host_toolset_mkpeephole'] = int(
cross_compiling)
if target_arch == 'arm':
configure_arm(o)