PPC: Force PPC linux to use gcc and gcc 4.8.3 changes for AIX
authormichael_dawson <michael_dawson@ca.ibm.com>
Wed, 18 Mar 2015 08:42:14 +0000 (01:42 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 18 Mar 2015 08:42:24 +0000 (08:42 +0000)
- We don't have clang for PPC, force use of gcc.
- Changes needed to compile/build on AIX with gcc 4.8.3 missed
from last review

modified:   build/standalone.gypi

R=danno@chromium.org, svenpanne@chromium.org

BUG=

Review URL: https://codereview.chromium.org/1018543003

Cr-Commit-Position: refs/heads/master@{#27254}

build/standalone.gypi

index 8a8128d..a3c9522 100644 (file)
@@ -86,7 +86,6 @@
     '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
       }, {
         'clang%': 0,
       }],
+      ['host_arch!="ppc" and host_arch!="ppc64" and host_arch!="ppc64le"', {
+        'host_clang%': '1',
+      }, {
+        'host_clang%': '0',
+      }],
     ],
     # Default ARM variable settings.
     'arm_version%': 'default',
     'default_configuration': 'Debug',
     'configurations': {
       'DebugBaseCommon': {
-        'cflags': [ '-g', '-O0' ],
         'conditions': [
-          [ 'OS=="aix"', {
-            'cflags': [ '-gxcoff' ],
+          ['OS=="aix"', {
+            'cflags': [ '-g', '-Og', '-gxcoff' ],
+          }, {
+            'cflags': [ '-g', '-O0' ],
           }],
         ],
       },