4
如何確定哪個特定的工具waf選擇了'cxx_compiler'等? Exempli特惠:如何確定waf選擇的工具?
def configure(ctx):
print('Running ' + ctx.cmd + ' in ' + ctx.path.abspath())
ctx.load('compiler_c')
ctx.load('compiler_cxx')
def build(ctx):
print('Running ' + ctx.cmd + ' in ' + ctx.path.abspath())
# Here print which C++ compiler was chosen
print 'Building cpp files with %s' % WHAT_GOES_HERE