Use $CXX instead of $CC when building C++ ninja source.
authorAmi Fischman <fischman@chromium.org>
Fri, 6 May 2011 20:04:38 +0000 (13:04 -0700)
committerAmi Fischman <fischman@chromium.org>
Fri, 6 May 2011 20:06:45 +0000 (13:06 -0700)
gen-build-file.py

index 399dc62..d1f740a 100755 (executable)
@@ -57,7 +57,7 @@ if platform == 'mingw':
     # configuration; ignored"
     cflags.remove('-fvisibility=hidden')
 else:
-    n.variable('cxx', os.environ.get('CC', 'g++'))
+    n.variable('cxx', os.environ.get('CXX', 'g++'))
 if 'CFLAGS' in os.environ:
     cflags.append(os.environ['CFLAGS'])
 n.variable('cflags', ' '.join(cflags))
@@ -68,7 +68,7 @@ n.newline()
 n.rule('cxx',
        command='$cxx -MMD -MF $out.d $cflags -c $in -o $out',
        depfile='$out.d',
-       description='CC $out')
+       description='CXX $out')
 n.newline()
 
 ar = 'ar'