summaryrefslogtreecommitdiff
path: root/tools/gyp
diff options
context:
space:
mode:
authorJohan Bergström <bugs@bergstroem.nu>2016-04-13 11:34:22 +0900
committerJohan Bergström <bugs@bergstroem.nu>2016-04-24 11:01:21 +1000
commitf1294f5bfd7f02bce8029818be9c92de59749137 (patch)
tree2ae729ec5d041e1bf71d461b46fd3febece34ecb /tools/gyp
parent983a809456b4e993e4defb818ddee3ca0e03b84d (diff)
downloadandroid-node-v8-f1294f5bfd7f02bce8029818be9c92de59749137.tar.gz
android-node-v8-f1294f5bfd7f02bce8029818be9c92de59749137.tar.bz2
android-node-v8-f1294f5bfd7f02bce8029818be9c92de59749137.zip
gyp: inherit parent for `*.host`
Gyp defaults to gcc/g++ if CC.host/CXX.host is unset. This is not suitable for environments that only uses the clang toolchain. Since we already assume that the user will provide clang/clang++ through CC/CXX, lean against it (then drop to gcc/g++). Also apply the same logic for link/ar for consistency although it doesn't affect us. PR-URL: https://github.com/nodejs/node/pull/6173 Fixes: https://github.com/nodejs/node/issues/6152 Reviewed-By: João Reis <reis@janeasystems.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'tools/gyp')
-rw-r--r--tools/gyp/pylib/gyp/generator/make.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gyp/pylib/gyp/generator/make.py b/tools/gyp/pylib/gyp/generator/make.py
index 786b4e0791..a81f639e38 100644
--- a/tools/gyp/pylib/gyp/generator/make.py
+++ b/tools/gyp/pylib/gyp/generator/make.py
@@ -2058,10 +2058,10 @@ def GenerateOutput(target_list, target_dicts, data, params):
'AR.target': GetEnvironFallback(('AR_target', 'AR'), '$(AR)'),
'CXX.target': GetEnvironFallback(('CXX_target', 'CXX'), '$(CXX)'),
'LINK.target': GetEnvironFallback(('LINK_target', 'LINK'), '$(LINK)'),
- 'CC.host': GetEnvironFallback(('CC_host',), 'gcc'),
- 'AR.host': GetEnvironFallback(('AR_host',), 'ar'),
- 'CXX.host': GetEnvironFallback(('CXX_host',), 'g++'),
- 'LINK.host': GetEnvironFallback(('LINK_host',), '$(CXX.host)'),
+ 'CC.host': GetEnvironFallback(('CC_host', 'CC'), 'gcc'),
+ 'AR.host': GetEnvironFallback(('AR_host', 'AR'), 'ar'),
+ 'CXX.host': GetEnvironFallback(('CXX_host', 'CXX'), 'g++'),
+ 'LINK.host': GetEnvironFallback(('LINK_host', 'LINK'), '$(CXX.host)'),
})
build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0])