mirror of
https://github.com/reactos/ninja.git
synced 2024-12-12 13:55:35 +00:00
Use $CXX instead of $CC when building C++ ninja source.
This commit is contained in:
parent
27df776e25
commit
b4e23012df
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user