MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / ensure

Function ensure

tools/cache.py:74–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73
74def ensure():
75 ensure_setup()
76 if not os.path.isdir(cachedir):
77 try:
78 utils.safe_ensure_dirs(cachedir)
79 except Exception as e:
80 utils.exit_with_error(f'unable to create cache directory "{cachedir}": {e} (see https://emscripten.org/docs/tools_reference/emcc.html for info on setting the cache directory)')
81
82
83def erase():

Callers 3

setupFunction · 0.85
mainFunction · 0.85
test_val.cppFile · 0.85

Calls 1

ensure_setupFunction · 0.85

Tested by 1

mainFunction · 0.68