Using distcc With scons Without Modifying Build Files

By default scons does not observe global environment variables however, scons can be made to use distcc even without having to modify scons build files. The trick is to add the distcc hosts to the hosts file within the home directory:

mkdir -p ~/.distcc/ 
echo "HOST_A:35001 HOST_B:35002" >~/.distcc/hosts

and then specify the C, respectively C++ compiler:

python3 buildscripts/scons.py build CC="distcc" CXX="distcc g++" ${JOBS_ARG}

fuss/scons.txt ยท Last modified: 2025/03/16 23:21 by office

Wizardry and Steamworks

© 2025 Wizardry and Steamworks

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.