문제

What's the correct way of using scons with distcc? The obvious way of using CC="distcc g++" or CXX doesn't work.

Did anyone ever succeed in combining the two?

Thanks!

도움이 되었습니까?

해결책

Have you configured CC or CXX via an environment variable? SCons doesn't pollute its default environment with variables from the calling environment. However, you may initialize the SCons environment from the OS environment (or preferably a subset of it):

import os
env = Environment(ENV = os.environ)
env.Program('yourprogram.cpp')

Alternatively, this could also work (haven't used SCons in a long time):

env = Environment(CXX='distcc g++')
env.Program('yourprogram.cpp')

Have a look at the man page for an overview of all the variables used in SCons.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top