Reviewers: danno, Jakob, paul.l..., akos.palfi.imgtec,

Message:
This patch allows to use the same version of clang (third_party/llvm/clang) on
Mac and Linux. Works from Xcode and command line build also. And with v8
buildbots: https://codereview.chromium.org/1214753002/

Description:
Use third_party clang on Mac.

BUG=

Please review this at https://codereview.chromium.org/1200833013/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+6, -0 lines):
  M build/standalone.gypi


Index: build/standalone.gypi
diff --git a/build/standalone.gypi b/build/standalone.gypi
index f2162b0a12eb01308c10987f489b22f7a4d204c3..4c662d593b2c56c1455f59f6ff63dff0cd8346c6 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -730,6 +730,9 @@
         'SYMROOT': '<(DEPTH)/xcodebuild',
       },
       'target_defaults': {
+        'variables': {
+ 'base_path%': '<!(cd <(DEPTH) && pwd -P)', # Mac requires full path.
+        },
         'xcode_settings': {
           'ALWAYS_SEARCH_USER_PATHS': 'NO',
           'GCC_C_LANGUAGE_STANDARD': 'c99',         # -std=c99
@@ -768,8 +771,11 @@
           }],
           ['clang==1', {
             'xcode_settings': {
+              'CC': '<(base_path)/<(clang_dir)/bin/clang',
+              'LDPLUSPLUS': '<(base_path)/<(clang_dir)/bin/clang++',
               'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
               'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x',  # -std=gnu++0x
+              'CLANG_CXX_LIBRARY': 'libc++'
             },
           }],
         ],


--
--
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.

Reply via email to