Commit 1fe570f3 authored by Emmanuele Bassi's avatar Emmanuele Bassi

Provide fallback values for CC and CXX

If CC and CXX are unset, distutils will fail miserably and use the C
compiler that was used to build it — which, in the case of Continuous,
is the C compiler used inside the Yocto base, and which tries to access
the system includes outside of the sandbox.

Let's fall back to 'gcc' and 'g++' until the glorious day when we can
take distutils and dump it in a very dark and deep pit.
parent af5542d9
......@@ -245,8 +245,12 @@ def main(args):
env = os.environ.copy()
if 'CC' in makeargs:
env['CC'] = makeargs['CC']
else:
env['CC'] = os.environ.get('CC', 'gcc')
if 'CXX' in makeargs:
env['CXX'] = makeargs['CXX']
else:
env['CXX'] = os.environ.get('CXX', 'g++')
log("makeargs = '%s', CC = '%s', CXX = '%s'" % (list(makeargs), env.get('CC', 'unset'), env.get('CXX', 'unset'),))
user_specified_jobs = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment