xb: Redefine CC/CXX environmental variables only if not defined in the first place.
This commit is contained in:
parent
f79550b582
commit
84f62eaa70
|
@ -598,8 +598,11 @@ class BaseBuildCommand(Command):
|
||||||
print('ERROR: don\'t know how to build on this platform.')
|
print('ERROR: don\'t know how to build on this platform.')
|
||||||
else:
|
else:
|
||||||
# TODO(benvanik): allow gcc?
|
# TODO(benvanik): allow gcc?
|
||||||
os.environ['CXX'] = 'clang++-3.8'
|
if 'CXX' not in os.environ:
|
||||||
os.environ['CC'] = 'clang-3.8'
|
os.environ['CXX'] = 'clang++-3.8'
|
||||||
|
if 'CC' not in os.environ:
|
||||||
|
os.environ['CC'] = 'clang-3.8'
|
||||||
|
|
||||||
result = subprocess.call([
|
result = subprocess.call([
|
||||||
'make',
|
'make',
|
||||||
'-Cbuild/',
|
'-Cbuild/',
|
||||||
|
|
Loading…
Reference in New Issue