@memoize
def get_strip(config):
    tc_dir = get_toolchain_root(config)
    if (config.toolchain == 'pnacl'):
        strip = os.path.join(tc_dir, 'bin', 'pnacl-strip')
    else:
        strip = os.path.join(tc_dir, 'bin', ('%s-nacl-strip' % config.arch))
    assert os.path.exists(strip), ('strip executable not found: %s' % strip)
    return strip
@memoize
def get_strip(config):
    tc_dir = get_toolchain_root(config)
    if (config.toolchain == 'pnacl'):
        strip = os.path.join(tc_dir, 'bin', 'pnacl-strip')
    else:
        strip = os.path.join(tc_dir, 'bin', ('%s-nacl-strip' % config.arch))
    assert os.path.exists(strip), ('strip executable not found: %s' % strip)
    return strip