Reviewers: Michael Achenbach,
Message:
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/964483002/ by [email protected].
The reason for reverting is: broke some things.
Description:
ensure host compiler is always clang when cross compiling from linux
BUG=
Committed: https://crrev.com/56039af476797accc238dcb24c7ab926899287a0
Cr-Commit-Position: refs/heads/master@{#26881}
Please review this at https://codereview.chromium.org/955393002/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+21, -0 lines):
M build/standalone.gypi
Index: build/standalone.gypi
diff --git a/build/standalone.gypi b/build/standalone.gypi
index
741ab6666fb718a06eacf3b6318b34ff43ebd536..b4d79f9cea30787d7b7eb1690519133e14c6dd7a
100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -86,6 +86,7 @@
'werror%': '-Werror',
'use_goma%': '<(use_goma)',
'gomadir%': '<(gomadir)',
+ 'host_clang%': '1',
# .gyp files or targets should set v8_code to 1 if they build V8
specific
# code, as opposed to external code. This variable is used to control
such
@@ -333,6 +334,26 @@
}],
],
},
+ 'conditions': [
+ ['clang!=1 and host_clang==1 and target_arch!="ia32" and
target_arch!="x64"', {
+ 'make_global_settings': [
+ ['CC.host', '<(clang_dir)/bin/clang'],
+ ['CXX.host', '<(clang_dir)/bin/clang++'],
+ ],
+ }],
+ ['clang==0 and host_clang==1', {
+ 'target_conditions': [
+ ['_toolset=="host"', {
+ 'cflags_cc': [ '-std=gnu++11', ],
+ }],
+ ],
+ 'target_defaults': {
+ 'target_conditions': [
+ ['_toolset=="host"', { 'cflags!':
[ '-Wno-unused-local-typedefs' ]}],
+ ],
+ },
+ }],
+ ],
}],
# 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"
# or OS=="netbsd"'
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.