@memoize
def get_install_root(config):
    'Returns the install location given a build configuration.'
    tc_dir = get_toolchain_root(config)
    if (config.toolchain == 'emscripten'):
        return os.path.join(tc_dir, 'system', 'local')
    if (config.toolchain == 'pnacl'):
        tc_dir = os.path.join(tc_dir, 'le32-nacl')
    else:
        tc_dir = os.path.join(tc_dir, ('%s-nacl' % config.arch))
    return os.path.join(tc_dir, 'usr')
Returns the install location given a build configuration.
@memoize
def get_install_root(config):
    
    tc_dir = get_toolchain_root(config)
    if (config.toolchain == 'emscripten'):
        return os.path.join(tc_dir, 'system', 'local')
    if (config.toolchain == 'pnacl'):
        tc_dir = os.path.join(tc_dir, 'le32-nacl')
    else:
        tc_dir = os.path.join(tc_dir, ('%s-nacl' % config.arch))
    return os.path.join(tc_dir, 'usr')