Set the CC environment variable also for non ccache situation

This commit is contained in:
Joakim Hove 2022-01-26 12:20:43 +01:00
parent 5e5dd48cee
commit 07500d5f09

View File

@ -25,6 +25,7 @@ try:
os.environ['CC'] = 'ccache {}'.format(cc)
print("Using 'ccache {}' as compiler".format(cc))
except OSError as e:
os.environ['CC'] = cc
print('\nNOTE: please install ccache for faster compilation of python bindings.\n')
# This is very hacky but so is the entire setup.py buildsystem.