cfg.load('compiler_cxx')

def build(bld):
    print('Compiler is CC_NAME  %s  CC  %s' % (bld.env.CC_NAME, bld.env.CC))
print('Compiler is CXX_NAME %s  CXX %s' % (bld.env.CXX_NAME, bld.env.CXX))
How to determine tools chosen by waf?