xb: Redefine CC/CXX environmental variables only if not defined in the first place.

This commit is contained in:
Dr. Chat 2016-06-13 18:42:48 -05:00
parent f79550b582
commit 84f62eaa70
1 changed files with 5 additions and 2 deletions

View File

@ -598,8 +598,11 @@ class BaseBuildCommand(Command):
print('ERROR: don\'t know how to build on this platform.')
else:
# TODO(benvanik): allow gcc?
os.environ['CXX'] = 'clang++-3.8'
os.environ['CC'] = 'clang-3.8'
if 'CXX' not in os.environ:
os.environ['CXX'] = 'clang++-3.8'
if 'CC' not in os.environ:
os.environ['CC'] = 'clang-3.8'
result = subprocess.call([
'make',
'-Cbuild/',